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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 2398783002: Rename a bunch of Mojo Application stuff to reference Services. (Closed)
Patch Set: . Created 4 years, 2 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 | « chromecast/browser/cast_content_browser_client.h ('k') | content/browser/BUILD.gn » ('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 60a614090d3a86bfb1bd8ad72f3924f5c3c127e2..2b50d7eebe0a499b9b088580574c5cbe611459b0 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -424,14 +424,14 @@ void CastContentBrowserClient::ExposeInterfacesToRenderer(
base::ThreadTaskRunnerHandle::Get());
}
-void CastContentBrowserClient::RegisterInProcessMojoApplications(
- StaticMojoApplicationMap* apps) {
+void CastContentBrowserClient::RegisterInProcessServices(
+ StaticServiceMap* services) {
#if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
- content::MojoApplicationInfo app_info;
- app_info.application_factory =
+ content::ServiceInfo info;
+ info.factory =
base::Bind(&CreateMojoMediaApplication, base::Unretained(this));
- app_info.application_task_runner = GetMediaTaskRunner();
- apps->insert(std::make_pair("service:media", app_info));
+ info.task_runner = GetMediaTaskRunner();
+ services->insert(std::make_pair("service:media", info));
#endif
}
@@ -439,7 +439,7 @@ std::unique_ptr<base::Value>
CastContentBrowserClient::GetServiceManifestOverlay(
const std::string& service_name) {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- if (service_name != content::kBrowserMojoApplicationName)
+ if (service_name != content::kBrowserServiceName)
return nullptr;
base::StringPiece manifest_contents =
rb.GetRawDataResourceForScale(IDR_CAST_CONTENT_BROWSER_MANIFEST_OVERLAY,
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698