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

Unified Diff: mash/example/window_type_launcher/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 | « mash/example/common/mus_views_init.h ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/example/window_type_launcher/main.cc
diff --git a/mash/example/window_type_launcher/main.cc b/mash/example/window_type_launcher/main.cc
index 53d6257ccf3ce90d738c2cc1fd51515d84e8dc7c..289b56c9df5dae12845fb7cdd59ec5b6ca0a4c66 100644
--- a/mash/example/window_type_launcher/main.cc
+++ b/mash/example/window_type_launcher/main.cc
@@ -15,8 +15,8 @@
#include "build/build_config.h"
#include "mash/example/window_type_launcher/window_type_launcher.h"
#include "mojo/message_pump/message_pump_mojo.h"
-#include "mojo/shell/public/cpp/application_impl.h"
-#include "mojo/shell/public/interfaces/application.mojom.h"
+#include "mojo/shell/public/cpp/shell_connection.h"
+#include "mojo/shell/public/interfaces/shell_client.mojom.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"
@@ -65,13 +65,13 @@ int main(int argc, char** argv) {
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, mojo::ScopedMessagePipeHandle()));
+ &request, mojo::ScopedMessagePipeHandle()));
base::MessageLoop loop(mojo::common::MessagePumpMojo::Create());
WindowTypeLauncher delegate;
- mojo::ApplicationImpl impl(&delegate, std::move(application_request));
+ mojo::ShellConnection impl(&delegate, std::move(request));
loop.Run();
mojo::embedder::ShutdownIPCSupport();
« no previous file with comments | « mash/example/common/mus_views_init.h ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698