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

Unified Diff: chrome/browser/media/protected_media_identifier_permission_context.cc

Issue 1153543015: media: Remove kDisableInfobarForProtectedMediaIdentifier flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 6 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/about_flags.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/protected_media_identifier_permission_context.cc
diff --git a/chrome/browser/media/protected_media_identifier_permission_context.cc b/chrome/browser/media/protected_media_identifier_permission_context.cc
index b419eb9a1c55820b8d49c2cfdae6a0be37388a1f..756a8eee96ee444f022abe52ca0adb77f0464169 100644
--- a/chrome/browser/media/protected_media_identifier_permission_context.cc
+++ b/chrome/browser/media/protected_media_identifier_permission_context.cc
@@ -22,9 +22,7 @@
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/user_prefs/user_prefs.h"
#include "ui/views/widget/widget.h"
-#elif defined(OS_ANDROID)
-#include "media/base/media_switches.h"
-#else
+#elif !defined(OS_ANDROID)
#error This file currently only supports Chrome OS and Android.
#endif
@@ -94,8 +92,6 @@ void ProtectedMediaIdentifierPermissionContext::RequestPermission(
pending_requests_.insert(
std::make_pair(web_contents, std::make_pair(widget, id)));
#else
- DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableInfobarForProtectedMediaIdentifier));
PermissionContextBase::RequestPermission(web_contents, id, requesting_origin,
user_gesture, callback);
#endif
@@ -118,16 +114,6 @@ ContentSetting ProtectedMediaIdentifierPermissionContext::GetPermissionStatus(
content_setting == CONTENT_SETTING_BLOCK ||
content_setting == CONTENT_SETTING_ASK);
-#if defined(OS_ANDROID)
- // When kDisableInfobarForProtectedMediaIdentifier is enabled, do not "ask"
- // the user and always "allow".
- if (content_setting == CONTENT_SETTING_ASK &&
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableInfobarForProtectedMediaIdentifier)) {
- content_setting = CONTENT_SETTING_ALLOW;
- }
-#endif
-
return content_setting;
}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698