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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make FakeProfile class happy Created 6 years, 11 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 | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/ui/app_list/test/fake_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index fa628f791b21e4754c4ddc6aaefb63229f014531..5a1529f2300919984d94c998a468509d2e8b21e2 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -99,6 +99,11 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#if defined(OS_ANDROID)
+#include "chrome/browser/media/protected_media_identifier_permission_context.h"
+#include "chrome/browser/media/protected_media_identifier_permission_context_factory.h"
+#endif // defined(OS_ANDROID)
+
#if defined(ENABLE_CONFIGURATION_POLICY)
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/policy/schema_registry_service.h"
@@ -979,6 +984,39 @@ void ProfileImpl::CancelMIDISysExPermissionRequest(
render_process_id, render_view_id, bridge_id, requesting_frame);
}
+void ProfileImpl::RequestProtectedMediaIdentifierPermission(
+ int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ int group_id,
+ const GURL& requesting_frame,
+ const ProtectedMediaIdentifierPermissionCallback& callback) {
+#if defined(OS_ANDROID)
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->RequestProtectedMediaIdentifierPermission(render_process_id,
+ render_view_id,
+ bridge_id,
+ group_id,
+ requesting_frame,
+ callback);
+#else
+ NOTIMPLEMENTED();
+ callback.Run(false);
+#endif // defined(OS_ANDROID)
+}
+
+void ProfileImpl::CancelProtectedMediaIdentifierPermissionRequests(
+ int group_id) {
+#if defined(OS_ANDROID)
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->CancelProtectedMediaIdentifierPermissionRequests(group_id);
+#else
+ NOTIMPLEMENTED();
+#endif // defined(OS_ANDROID)
+}
+
content::ResourceContext* ProfileImpl::GetResourceContext() {
return io_data_.GetResourceContext();
}
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/ui/app_list/test/fake_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698