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

Unified Diff: content/gpu/gpu_process_control_impl.cc

Issue 1947313002: Enable content embedders to specify mojo application task runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restores mojo:media in browser Created 4 years, 7 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 | « content/gpu/gpu_process_control_impl.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_process_control_impl.cc
diff --git a/content/gpu/gpu_process_control_impl.cc b/content/gpu/gpu_process_control_impl.cc
index a6bc1db3e3697b844768d95bca2a924887af2683..21051fc1a077198159b5eaca0319ca946131f342 100644
--- a/content/gpu/gpu_process_control_impl.cc
+++ b/content/gpu/gpu_process_control_impl.cc
@@ -20,16 +20,16 @@ GpuProcessControlImpl::GpuProcessControlImpl() {}
GpuProcessControlImpl::~GpuProcessControlImpl() {}
-void GpuProcessControlImpl::RegisterApplicationFactories(
- ApplicationFactoryMap* factories) {
+void GpuProcessControlImpl::RegisterApplications(ApplicationMap* apps) {
#if defined(ENABLE_MOJO_MEDIA_IN_GPU_PROCESS)
#if defined(OS_ANDROID)
// Only set once per process instance.
media::SetMediaClientAndroid(GetContentClient()->GetMediaClientAndroid());
#endif
- factories->insert(std::make_pair(
- "mojo:media", base::Bind(&media::CreateMojoMediaApplication)));
+ MojoApplicationInfo app_info;
+ app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication);
+ apps->insert(std::make_pair("mojo:media", app_info));
#endif
}
« no previous file with comments | « content/gpu/gpu_process_control_impl.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698