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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 769103002: Refactor ProtectedMediaIdentifierPermissionContext to derive from PermissionContextBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add #ifdef OS_CHROMEOS and clean-up includes Created 6 years 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 | « no previous file | chrome/browser/content_settings/permission_context_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 461c50db639f4291e7d28446d7d26912f0e22c2c..87fe993392a727a132f4eb7f876b270b7d18389d 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1897,8 +1897,11 @@ void ChromeContentBrowserClient::RequestPermission(
case content::PERMISSION_PROTECTED_MEDIA:
#if defined(OS_ANDROID)
ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(profile)
- ->RequestProtectedMediaIdentifierPermission(
- web_contents, requesting_frame, result_callback);
+ ->RequestPermission(web_contents,
+ request_id,
+ requesting_frame.GetOrigin(),
+ user_gesture,
+ result_callback);
#else
NOTIMPLEMENTED();
#endif
@@ -1951,8 +1954,7 @@ void ChromeContentBrowserClient::CancelPermissionRequest(
case content::PERMISSION_PROTECTED_MEDIA:
#if defined(OS_ANDROID)
ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(profile)
- ->CancelProtectedMediaIdentifierPermissionRequests(
- render_process_id, render_view_id, requesting_frame);
+ ->CancelPermissionRequest(web_contents, request_id);
#else
NOTIMPLEMENTED();
#endif
@@ -1978,7 +1980,7 @@ static ContentSettingsType PermissionToContentSetting(
return CONTENT_SETTINGS_TYPE_NOTIFICATIONS;
case content::PERMISSION_GEOLOCATION:
return CONTENT_SETTINGS_TYPE_GEOLOCATION;
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
case content::PERMISSION_PROTECTED_MEDIA:
return CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER;
#endif
« no previous file with comments | « no previous file | chrome/browser/content_settings/permission_context_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698