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

Unified Diff: mojo/public/cpp/application/lib/application_runner.cc

Issue 868463008: Remove Client relationship between mojo.Shell/mojo.Application (Closed) Base URL: git@github.com:domokit/mojo.git@app_impl_init
Patch Set: fix android Created 5 years, 11 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: mojo/public/cpp/application/lib/application_runner.cc
diff --git a/mojo/public/cpp/application/lib/application_runner.cc b/mojo/public/cpp/application/lib/application_runner.cc
index dbfdd4f183fad2e9ec88a6b40c0424acbe123531..0737dc76f87f8d922bdbf01f66a1f47410540893 100644
--- a/mojo/public/cpp/application/lib/application_runner.cc
+++ b/mojo/public/cpp/application/lib/application_runner.cc
@@ -23,13 +23,12 @@ ApplicationRunner::~ApplicationRunner() {
assert(!delegate_);
}
-MojoResult ApplicationRunner::Run(MojoHandle shell_handle) {
+MojoResult ApplicationRunner::Run(MojoHandle app_request_handle) {
Environment env;
{
RunLoop loop;
- ShellPtr shell;
- shell.Bind(MakeScopedHandle(MessagePipeHandle(shell_handle)));
- ApplicationImpl app(delegate_, shell.Pass());
+ ApplicationImpl app(delegate_, MakeRequest<Application>(MakeScopedHandle(
+ MessagePipeHandle(app_request_handle))));
loop.Run();
}

Powered by Google App Engine
This is Rietveld 408576698