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

Unified Diff: chromecast/browser/cast_content_browser_client.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 | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/mojo/mojo_shell_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48210fbb3d3c363d1404cabb4d7723e8654fb893..9da93920677ee48a043f614f2b0e07e3ce0b7db2 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -394,9 +394,11 @@ bool CastContentBrowserClient::CanCreateWindow(
void CastContentBrowserClient::RegisterInProcessMojoApplications(
StaticMojoApplicationMap* apps) {
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
- apps->insert(std::make_pair(
- "mojo:media",
- base::Bind(&CreateCastMojoMediaApplication, base::Unretained(this))));
+ content::MojoApplicationInfo app_info;
+ app_info.application_factory =
+ base::Bind(&CreateCastMojoMediaApplication, base::Unretained(this));
+ app_info.application_task_runner = GetMediaTaskRunner();
+ apps->insert(std::make_pair("mojo:media", app_info));
#endif
}
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/mojo/mojo_shell_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698