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

Unified Diff: mojo/shell/runner/child/test_native_main.cc

Issue 1675153002: ApplicationImpl->ShellConnection, mojom::Application->mojom::ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ci2
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 | « mojo/shell/runner/child/test_native_main.h ('k') | mojo/shell/runner/host/child_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/child/test_native_main.cc
diff --git a/mojo/shell/runner/child/test_native_main.cc b/mojo/shell/runner/child/test_native_main.cc
index 537b32b68de6f7c419b1ea6bda9822e177cd59b8..8b4cbd80be72f0203cf075780e0d9bced402aa21 100644
--- a/mojo/shell/runner/child/test_native_main.cc
+++ b/mojo/shell/runner/child/test_native_main.cc
@@ -13,8 +13,8 @@
#include "base/threading/thread.h"
#include "build/build_config.h"
#include "mojo/message_pump/message_pump_mojo.h"
-#include "mojo/shell/public/cpp/application_impl.h"
#include "mojo/shell/public/cpp/shell_client.h"
+#include "mojo/shell/public/cpp/shell_connection.h"
#include "mojo/shell/runner/child/runner_connection.h"
#include "mojo/shell/runner/init.h"
#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
@@ -37,7 +37,7 @@ class ProcessDelegate : public mojo::embedder::ProcessDelegate {
} // namespace
-int TestNativeMain(mojo::ShellClient* application_delegate) {
+int TestNativeMain(mojo::ShellClient* shell_client) {
mojo::shell::WaitForDebuggerIfNecessary();
#if !defined(OFFICIAL_BUILD)
@@ -60,13 +60,12 @@ int TestNativeMain(mojo::ShellClient* application_delegate) {
mojo::embedder::ProcessType::NONE, &process_delegate,
io_thread.task_runner().get(), mojo::embedder::ScopedPlatformHandle());
- mojo::ApplicationRequest application_request;
+ mojo::ShellClientRequest request;
scoped_ptr<mojo::shell::RunnerConnection> connection(
mojo::shell::RunnerConnection::ConnectToRunner(
- &application_request, ScopedMessagePipeHandle()));
+ &request, ScopedMessagePipeHandle()));
base::MessageLoop loop(mojo::common::MessagePumpMojo::Create());
- mojo::ApplicationImpl impl(application_delegate,
- std::move(application_request));
+ mojo::ShellConnection impl(shell_client, std::move(request));
loop.Run();
mojo::embedder::ShutdownIPCSupport();
« no previous file with comments | « mojo/shell/runner/child/test_native_main.h ('k') | mojo/shell/runner/host/child_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698