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

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: 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
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 3b1f047b82e3c303044838d73de4f1459c1900d7..a8f207c898c86bf158d281bd8e5784f0ca50d6d5 100644
--- a/chrome/browser/media/protected_media_identifier_permission_context.cc
+++ b/chrome/browser/media/protected_media_identifier_permission_context.cc
@@ -23,9 +23,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
@@ -95,8 +93,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
@@ -119,16 +115,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;
}

Powered by Google App Engine
This is Rietveld 408576698