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

Unified Diff: chrome/browser/chrome_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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 831a7f8b23fee2df4da4a04da6f3af4b4547a3d4..7f895f7719dc081e9bb99f502138d14b992aa604 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -165,8 +165,8 @@
#include "content/public/common/content_descriptors.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
-#include "content/public/common/mojo_shell_connection.h"
#include "content/public/common/sandbox_type.h"
+#include "content/public/common/service_manager_connection.h"
#include "content/public/common/service_names.h"
#include "content/public/common/url_utils.h"
#include "content/public/common/web_preferences.h"
@@ -3029,24 +3029,24 @@ void ChromeContentBrowserClient::ExposeInterfacesToGpuProcess(
metrics::CallStackProfileParams::GPU_PROCESS));
}
-void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
- StaticMojoApplicationMap* apps) {
+void ChromeContentBrowserClient::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", app_info));
#endif
#if defined(OS_CHROMEOS)
- content::MojoShellConnection::GetForProcess()->AddConnectionFilter(
+ content::ServiceManagerConnection::GetForProcess()->AddConnectionFilter(
base::MakeUnique<chromeos::ChromeInterfaceFactory>());
#endif // OS_CHROMEOS
}
-void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications(
- OutOfProcessMojoApplicationMap* apps) {
+void ChromeContentBrowserClient::RegisterOutOfProcessServices(
+ OutOfProcessServiceMap* services) {
#if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
- apps->insert(std::make_pair("service:media",
- base::ASCIIToUTF16("Media App")));
+ services->insert(std::make_pair("service:media",
+ base::ASCIIToUTF16("Media Service")));
#endif
}
@@ -3055,11 +3055,11 @@ ChromeContentBrowserClient::GetServiceManifestOverlay(
const std::string& name) {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
int id = -1;
- if (name == content::kBrowserMojoApplicationName)
+ if (name == content::kBrowserServiceName)
id = IDR_CHROME_CONTENT_BROWSER_MANIFEST_OVERLAY;
- else if (name == content::kGpuMojoApplicationName)
+ else if (name == content::kGpuServiceName)
id = IDR_CHROME_CONTENT_GPU_MANIFEST_OVERLAY;
- else if (name == content::kUtilityMojoApplicationName)
+ else if (name == content::kUtilityServiceName)
id = IDR_CHROME_CONTENT_UTILITY_MANIFEST_OVERLAY;
if (id == -1)
return nullptr;
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698