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

Unified Diff: mojo/application/application_test_main_chromium.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/application/application_test_main_chromium.cc
diff --git a/mojo/application/application_test_main_chromium.cc b/mojo/application/application_test_main_chromium.cc
index 13cf9f08525cbc66266d833150883c9c29d2a8a1..e6df84fac7af67f54bb1689a3d421471123241bf 100644
--- a/mojo/application/application_test_main_chromium.cc
+++ b/mojo/application/application_test_main_chromium.cc
@@ -6,11 +6,9 @@
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_test_base.h"
-MojoResult MojoMain(MojoHandle shell_handle) {
+MojoResult MojoMain(MojoHandle handle) {
// An AtExitManager instance is needed to construct message loops.
base::AtExitManager at_exit;
- mojo::ShellPtr shell;
- shell.Bind(MakeScopedHandle(mojo::MessagePipeHandle(shell_handle)));
- return mojo::test::RunAllTests(shell.Pass());
+ return mojo::test::RunAllTests(handle);
}

Powered by Google App Engine
This is Rietveld 408576698