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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 1041513002: Chromecast: grant all permissions from CastContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months 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
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_browser_client.cc
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index 09043fe94999eace2e3c1ac63d2da2caf22ca373..e0ef086d7ae4cd4c8442c6c7937a1759a92e2af0 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -253,6 +253,26 @@ CastContentBrowserClient::SelectClientCertificateOnIOThread(
}
}
+void CastContentBrowserClient::RequestPermission(
+ content::PermissionType permission,
+ content::WebContents* web_contents,
+ int bridge_id,
+ const GURL& requesting_frame,
+ bool user_gesture,
+ const base::Callback<void(content::PermissionStatus)>& callback) {
+ LOG(INFO) << __FUNCTION__ << ": " << static_cast<int>(permission);
+ callback.Run(content::PermissionStatus::PERMISSION_STATUS_GRANTED);
+}
+
+content::PermissionStatus CastContentBrowserClient::GetPermissionStatus(
+ content::PermissionType permission,
+ content::BrowserContext* browser_context,
+ const GURL& requesting_origin,
+ const GURL& embedding_origin) {
+ LOG(INFO) << __FUNCTION__ << ": " << static_cast<int>(permission);
+ return content::PermissionStatus::PERMISSION_STATUS_GRANTED;
+}
+
bool CastContentBrowserClient::CanCreateWindow(
const GURL& opener_url,
const GURL& opener_top_level_frame_url,
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698