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

Unified Diff: content/shell/browser/shell_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
Index: content/shell/browser/shell_content_browser_client.cc
diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc
index b376c2b80ef66fc4b5450feaec1db55493c997a2..308e9ca4afa3db147f059bec8c34caa696b19afe 100644
--- a/content/shell/browser/shell_content_browser_client.cc
+++ b/content/shell/browser/shell_content_browser_client.cc
@@ -187,30 +187,30 @@ bool ShellContentBrowserClient::IsHandledURL(const GURL& url) {
return false;
}
-void ShellContentBrowserClient::RegisterInProcessMojoApplications(
- StaticMojoApplicationMap* apps) {
+void ShellContentBrowserClient::RegisterInProcessServices(
+ StaticServiceMap* services) {
#if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
- content::MojoApplicationInfo app_info;
- app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication);
- apps->insert(std::make_pair("service:media", app_info));
+ content::ServiceInfo info;
+ info.factory = base::Bind(&media::CreateMojoMediaApplication);
+ services->insert(std::make_pair("service:media", info));
#endif
}
-void ShellContentBrowserClient::RegisterOutOfProcessMojoApplications(
- OutOfProcessMojoApplicationMap* apps) {
- apps->insert(std::make_pair(kTestServiceUrl,
- base::UTF8ToUTF16("Test Service")));
+void ShellContentBrowserClient::RegisterOutOfProcessServices(
+ OutOfProcessServiceMap* services) {
+ services->insert(std::make_pair(kTestServiceUrl,
+ base::UTF8ToUTF16("Test Service")));
}
std::unique_ptr<base::Value>
ShellContentBrowserClient::GetServiceManifestOverlay(
const std::string& name) {
int id = -1;
- if (name == content::kBrowserMojoApplicationName)
+ if (name == content::kBrowserServiceName)
id = IDR_CONTENT_SHELL_BROWSER_MANIFEST_OVERLAY;
- else if (name == content::kRendererMojoApplicationName)
+ else if (name == content::kRendererServiceName)
id = IDR_CONTENT_SHELL_RENDERER_MANIFEST_OVERLAY;
- else if (name == content::kUtilityMojoApplicationName)
+ else if (name == content::kUtilityServiceName)
id = IDR_CONTENT_SHELL_UTILITY_MANIFEST_OVERLAY;
if (id == -1)
return nullptr;
« no previous file with comments | « content/shell/browser/shell_content_browser_client.h ('k') | content/shell/utility/shell_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698