| 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;
|
| }
|
|
|
|
|