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

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

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 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/sysui_application.cc ('k') | chrome/browser/ui/views/frame/browser_frame_mus.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 c8804d3a3e694887677d47433e6d0277eaad10a8..3dc916dad929977398ddd6b86e6cc6dd59e34d52 100644
--- a/chrome/app/mash/mash_runner.cc
+++ b/chrome/app/mash/mash_runner.cc
@@ -24,6 +24,7 @@
#include "mojo/shell/background/background_shell.h"
#include "mojo/shell/identity.h"
#include "mojo/shell/native_runner_delegate.h"
+#include "mojo/shell/public/cpp/connector.h"
#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/cpp/shell_connection.h"
#include "mojo/shell/public/interfaces/shell_client_factory.mojom.h"
@@ -190,8 +191,7 @@ void MashRunner::RunMain() {
shell_client_.get(),
background_shell.CreateShellClientRequest(GURL("exe:chrome_mash"))));
shell_connection_->WaitForInitialize();
- static_cast<mojo::Shell*>(shell_connection_.get())
- ->Connect("mojo:mash_shell");
+ shell_connection_->connector()->Connect("mojo:mash_shell");
base::MessageLoop::current()->Run();
}
« no previous file with comments | « ash/mus/sysui_application.cc ('k') | chrome/browser/ui/views/frame/browser_frame_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698