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

Unified Diff: content/browser/media/cdm/browser_cdm_manager.cc

Issue 1007163003: media: Check kDisableInfobarForProtectedMediaIdentifier in ProtectedMediaIdentifierPermissionContex… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proxy_decryptor_request_permission
Patch Set: rebase only Created 5 years, 9 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/media/protected_media_identifier_permission_context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/cdm/browser_cdm_manager.cc
diff --git a/content/browser/media/cdm/browser_cdm_manager.cc b/content/browser/media/cdm/browser_cdm_manager.cc
index 1c16e1d52177d150f20deec5c842857eb1b9e1a2..1c1b157968d727916ff94ce14e9389966eac5275 100644
--- a/content/browser/media/cdm/browser_cdm_manager.cc
+++ b/content/browser/media/cdm/browser_cdm_manager.cc
@@ -7,7 +7,6 @@
#include <string>
#include "base/bind.h"
-#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/memory/scoped_ptr.h"
#include "base/task_runner.h"
@@ -18,12 +17,10 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
-#include "content/public/common/content_switches.h"
#include "media/base/browser_cdm.h"
#include "media/base/browser_cdm_factory.h"
#include "media/base/cdm_promise.h"
#include "media/base/limits.h"
-#include "media/base/media_switches.h"
namespace content {
@@ -366,16 +363,6 @@ void BrowserCdmManager::OnCreateSessionAndGenerateRequest(
return;
}
-#if defined(OS_ANDROID)
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableInfobarForProtectedMediaIdentifier)) {
- CreateSessionAndGenerateRequestIfPermitted(
- render_frame_id, cdm_id, eme_init_data_type, init_data, promise.Pass(),
- true /* allowed */);
- return;
- }
-#endif
-
BrowserCdm* cdm = GetCdm(render_frame_id, cdm_id);
if (!cdm) {
DLOG(WARNING) << "No CDM found for: " << render_frame_id << ", " << cdm_id;
« no previous file with comments | « chrome/browser/media/protected_media_identifier_permission_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698