Implement GetPermissionStatusForFrame in AtomPermissionManager
Implenation and requirement comes from CR: https://chromium-review.googlesource.com/c/chromium/src/+/940744
This commit is contained in:
parent
8a6fccf3d1
commit
a0a4c7b82c
2 changed files with 12 additions and 0 deletions
|
@ -242,4 +242,12 @@ bool AtomPermissionManager::CheckPermissionWithDetails(
|
||||||
*details);
|
*details);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blink::mojom::PermissionStatus
|
||||||
|
AtomPermissionManager::GetPermissionStatusForFrame(
|
||||||
|
content::PermissionType permission,
|
||||||
|
content::RenderFrameHost* render_frame_host,
|
||||||
|
const GURL& requesting_origin) {
|
||||||
|
return blink::mojom::PermissionStatus::GRANTED;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace atom
|
} // namespace atom
|
||||||
|
|
|
@ -71,6 +71,10 @@ class AtomPermissionManager : public content::PermissionManager {
|
||||||
const base::DictionaryValue* details,
|
const base::DictionaryValue* details,
|
||||||
const base::Callback<
|
const base::Callback<
|
||||||
void(const std::vector<blink::mojom::PermissionStatus>&)>& callback);
|
void(const std::vector<blink::mojom::PermissionStatus>&)>& callback);
|
||||||
|
blink::mojom::PermissionStatus GetPermissionStatusForFrame(
|
||||||
|
content::PermissionType permission,
|
||||||
|
content::RenderFrameHost* render_frame_host,
|
||||||
|
const GURL& requesting_origin) override;
|
||||||
|
|
||||||
bool CheckPermissionWithDetails(content::PermissionType permission,
|
bool CheckPermissionWithDetails(content::PermissionType permission,
|
||||||
content::RenderFrameHost* render_frame_host,
|
content::RenderFrameHost* render_frame_host,
|
||||||
|
|
Loading…
Reference in a new issue