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

Unified Diff: chrome/browser/chrome_browser_main.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 | « chrome/browser/chrome_browser_main.h ('k') | chrome/browser/chrome_browser_main_extra_parts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index c23936ba25af2a4ed92a0086711e7e14a9b440eb..9810cc8353d3f3bc62f92a34a8ad72eb1ef43dbb 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -270,7 +270,7 @@
#if defined(USE_AURA)
#include "chrome/browser/lifetime/application_lifetime.h"
-#include "content/public/common/mojo_shell_connection.h"
+#include "content/public/common/service_manager_connection.h"
#include "services/shell/runner/common/client_util.h"
#endif
@@ -1365,17 +1365,18 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
return content::RESULT_CODE_NORMAL_EXIT;
}
-void ChromeBrowserMainParts::MojoShellConnectionStarted(
- content::MojoShellConnection* connection) {
+void ChromeBrowserMainParts::ServiceManagerConnectionStarted(
+ content::ServiceManagerConnection* connection) {
for (size_t i = 0; i < chrome_extra_parts_.size(); ++i)
- chrome_extra_parts_[i]->MojoShellConnectionStarted(connection);
+ chrome_extra_parts_[i]->ServiceManagerConnectionStarted(connection);
}
void ChromeBrowserMainParts::PreMainMessageLoopRun() {
#if defined(USE_AURA)
- if (content::MojoShellConnection::GetForProcess() && shell::ShellIsRemote()) {
- content::MojoShellConnection::GetForProcess()->SetConnectionLostClosure(
- base::Bind(&chrome::SessionEnding));
+ if (content::ServiceManagerConnection::GetForProcess() &&
+ shell::ShellIsRemote()) {
+ content::ServiceManagerConnection::GetForProcess()->
+ SetConnectionLostClosure(base::Bind(&chrome::SessionEnding));
}
#endif
TRACE_EVENT0("startup", "ChromeBrowserMainParts::PreMainMessageLoopRun");
« no previous file with comments | « chrome/browser/chrome_browser_main.h ('k') | chrome/browser/chrome_browser_main_extra_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698