Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(968)

Unified Diff: content/public/browser/content_browser_client.cc

Issue 750633003: Implement HasPermission() method in PermissionService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed comments, switched to use BrowserContext, passing PermissionStatus in callback Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/content_browser_client.cc
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
index e32344940ef368946620a3856aceb1006f125c10..657e93f05b228ee0ca3ad995049723f186689d18 100644
--- a/content/public/browser/content_browser_client.cc
+++ b/content/public/browser/content_browser_client.cc
@@ -237,6 +237,15 @@ void ContentBrowserClient::RequestPermission(
result_callback.Run(true);
}
+void ContentBrowserClient::HasPermission(
+ PermissionType permission,
+ BrowserContext* browser_context,
+ const GURL& requesting_origin,
+ const GURL& embedding_origin,
+ const PermissionStatusCallback& result_callback) {
+ result_callback.Run(PERMISSION_STATUS_ASK);
mlamouri (slow - plz ping) 2014/11/24 19:06:01 nit: PERMISSION_STATUS_DENIED.
timvolodine 2014/11/27 17:53:42 changed to denied, but, RequestPermission above do
+}
+
bool ContentBrowserClient::CanCreateWindow(
const GURL& opener_url,
const GURL& opener_top_level_frame_url,

Powered by Google App Engine
This is Rietveld 408576698