From a0a4c7b82cd13e3afa8dfe880419ca82cc51acfb Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Sun, 22 Jul 2018 01:48:43 +1000 Subject: [PATCH] Implement GetPermissionStatusForFrame in AtomPermissionManager Implenation and requirement comes from CR: https://chromium-review.googlesource.com/c/chromium/src/+/940744 --- atom/browser/atom_permission_manager.cc | 8 ++++++++ atom/browser/atom_permission_manager.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/atom/browser/atom_permission_manager.cc b/atom/browser/atom_permission_manager.cc index 7d0e01e7b22..47602ab4674 100644 --- a/atom/browser/atom_permission_manager.cc +++ b/atom/browser/atom_permission_manager.cc @@ -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 diff --git a/atom/browser/atom_permission_manager.h b/atom/browser/atom_permission_manager.h index 3dd9c2988e0..57aa5602f86 100644 --- a/atom/browser/atom_permission_manager.h +++ b/atom/browser/atom_permission_manager.h @@ -71,6 +71,10 @@ class AtomPermissionManager : public content::PermissionManager { const base::DictionaryValue* details, const base::Callback< void(const std::vector&)>& 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,