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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 1408793009: media: Remove BrowserCdmFactory inferface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment for DEPS change. Created 5 years, 1 month 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: chromecast/browser/cast_content_browser_client.cc
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index 14ff5c2a956a85a275b3b839b5bc485618026276..49294bd185c6e94199c177493fb38cc4ffb2389f 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -90,11 +90,6 @@ scoped_refptr<media::CmaMediaPipelineClient>
CastContentBrowserClient::CreateCmaMediaPipelineClient() {
return make_scoped_refptr(new media::CmaMediaPipelineClient());
}
-
-scoped_ptr<::media::BrowserCdmFactory>
-CastContentBrowserClient::CreateBrowserCdmFactory() {
- return make_scoped_ptr(new media::CastBrowserCdmFactory());
-}
#endif // OS_ANDROID
void CastContentBrowserClient::ProcessExiting() {
@@ -364,6 +359,7 @@ void CastContentBrowserClient::RegisterUnsandboxedOutOfProcessMojoApplications(
}
#if defined(OS_ANDROID)
+
void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
int child_process_id,
@@ -389,7 +385,18 @@ void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
}
}
}
+
#else
+
+scoped_ptr<::media::CdmFactory> CastContentBrowserClient::CreateCdmFactory() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableCmaMediaPipeline)) {
+ return make_scoped_ptr(new media::CastBrowserCdmFactory());
+ }
+
+ return nullptr;
+}
+
void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
int child_process_id,
@@ -399,6 +406,7 @@ void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
mappings->Share(kCrashDumpSignal, crash_signal_fd);
}
}
+
#endif // defined(OS_ANDROID)
#if defined(OS_ANDROID) && defined(VIDEO_HOLE)
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | chromecast/browser/media/cast_browser_cdm_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698