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

Unified Diff: chrome/app/mash/mash_runner.cc

Issue 2804373002: Eliminate Connector::Connect(), Connection, etc. (Closed)
Patch Set: . Created 3 years, 8 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 | « ash/mus/window_manager_unittest.cc ('k') | chrome/test/base/mash_browser_tests_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/mash/mash_runner.cc
diff --git a/chrome/app/mash/mash_runner.cc b/chrome/app/mash/mash_runner.cc
index e857c970d9ec924baa4b816a0a9fbf8270788052..a50a8079ce1e4f2fead1f2bd1fb1f82e1be242a3 100644
--- a/chrome/app/mash/mash_runner.cc
+++ b/chrome/app/mash/mash_runner.cc
@@ -243,11 +243,13 @@ int MashRunner::RunServiceManagerInMain() {
// Ping services that we know we want to launch on startup (UI service,
// window manager, quick launch app).
- context.connector()->Connect(ui::mojom::kServiceName);
- context.connector()->Connect(content::mojom::kPackagedServicesServiceName);
+ context.connector()->StartService(ui::mojom::kServiceName);
+ context.connector()->StartService(
+ content::mojom::kPackagedServicesServiceName);
if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kMash)) {
- context.connector()->Connect(mash::common::GetWindowManagerServiceName());
- context.connector()->Connect(mash::quick_launch::mojom::kServiceName);
+ context.connector()->StartService(
+ mash::common::GetWindowManagerServiceName());
+ context.connector()->StartService(mash::quick_launch::mojom::kServiceName);
}
run_loop.Run();
« no previous file with comments | « ash/mus/window_manager_unittest.cc ('k') | chrome/test/base/mash_browser_tests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698