Implement GetPermissionStatusForFrame in AtomPermissionManager

Implenation and requirement comes from CR: https://chromium-review.googlesource.com/c/chromium/src/+/940744
This commit is contained in:
Samuel Attard 2018-07-22 01:48:43 +10:00 committed by Aleksei Kuzmin
parent 8a6fccf3d1
commit a0a4c7b82c
2 changed files with 12 additions and 0 deletions

View file

@ -242,4 +242,12 @@ bool AtomPermissionManager::CheckPermissionWithDetails(
*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

View file

@ -71,6 +71,10 @@ class AtomPermissionManager : public content::PermissionManager {
const base::DictionaryValue* details,
const base::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,
content::RenderFrameHost* render_frame_host,