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

Side by Side Diff: mojo/runner/child/test_native_main.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « mojo/runner/child/runner_connection.cc ('k') | mojo/runner/context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/runner/child/test_native_main.h" 5 #include "mojo/runner/child/test_native_main.h"
6 6
7 #include <utility>
8
7 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
8 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
9 #include "base/process/launch.h" 11 #include "base/process/launch.h"
10 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
11 #include "build/build_config.h" 13 #include "build/build_config.h"
12 #include "mojo/application/public/cpp/application_delegate.h" 14 #include "mojo/application/public/cpp/application_delegate.h"
13 #include "mojo/application/public/cpp/application_impl.h" 15 #include "mojo/application/public/cpp/application_impl.h"
14 #include "mojo/message_pump/message_pump_mojo.h" 16 #include "mojo/message_pump/message_pump_mojo.h"
15 #include "mojo/runner/child/runner_connection.h" 17 #include "mojo/runner/child/runner_connection.h"
16 #include "mojo/runner/init.h" 18 #include "mojo/runner/init.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 mojo::embedder::InitIPCSupport( 58 mojo::embedder::InitIPCSupport(
57 mojo::embedder::ProcessType::NONE, &process_delegate, 59 mojo::embedder::ProcessType::NONE, &process_delegate,
58 io_thread.task_runner().get(), mojo::embedder::ScopedPlatformHandle()); 60 io_thread.task_runner().get(), mojo::embedder::ScopedPlatformHandle());
59 61
60 mojo::InterfaceRequest<mojo::Application> application_request; 62 mojo::InterfaceRequest<mojo::Application> application_request;
61 scoped_ptr<mojo::runner::RunnerConnection> connection( 63 scoped_ptr<mojo::runner::RunnerConnection> connection(
62 mojo::runner::RunnerConnection::ConnectToRunner( 64 mojo::runner::RunnerConnection::ConnectToRunner(
63 &application_request, ScopedMessagePipeHandle())); 65 &application_request, ScopedMessagePipeHandle()));
64 base::MessageLoop loop(mojo::common::MessagePumpMojo::Create()); 66 base::MessageLoop loop(mojo::common::MessagePumpMojo::Create());
65 mojo::ApplicationImpl impl(application_delegate, 67 mojo::ApplicationImpl impl(application_delegate,
66 application_request.Pass()); 68 std::move(application_request));
67 loop.Run(); 69 loop.Run();
68 70
69 mojo::embedder::ShutdownIPCSupport(); 71 mojo::embedder::ShutdownIPCSupport();
70 } 72 }
71 73
72 return 0; 74 return 0;
73 } 75 }
74 76
75 } // namespace runner 77 } // namespace runner
76 } // namespace mojo 78 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/runner/child/runner_connection.cc ('k') | mojo/runner/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698