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

Side by Side Diff: chrome/app/mash/mash_runner.cc

Issue 1915053004: mus/chrome: Always wait for the mojo shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/base/mojo_test_connector.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/app/mash/mash_runner.h" 5 #include "chrome/app/mash/mash_runner.h"
6 6
7 #include "ash/mus/sysui_application.h" 7 #include "ash/mus/sysui_application.h"
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 class NativeRunnerDelegateImpl : public shell::NativeRunnerDelegate { 141 class NativeRunnerDelegateImpl : public shell::NativeRunnerDelegate {
142 public: 142 public:
143 NativeRunnerDelegateImpl() {} 143 NativeRunnerDelegateImpl() {}
144 ~NativeRunnerDelegateImpl() override {} 144 ~NativeRunnerDelegateImpl() override {}
145 145
146 private: 146 private:
147 // shell::NativeRunnerDelegate: 147 // shell::NativeRunnerDelegate:
148 void AdjustCommandLineArgumentsForTarget( 148 void AdjustCommandLineArgumentsForTarget(
149 const shell::Identity& target, 149 const shell::Identity& target,
150 base::CommandLine* command_line) override { 150 base::CommandLine* command_line) override {
151 command_line->AppendSwitch(switches::kWaitForMojoShell);
152 if (target.name() != "exe:chrome") { 151 if (target.name() != "exe:chrome") {
153 if (target.name() == "exe:chrome_mash") 152 if (target.name() == "exe:chrome_mash")
154 ChangeChromeMashToChrome(command_line); 153 ChangeChromeMashToChrome(command_line);
155 command_line->AppendSwitchASCII(switches::kProcessType, kMashChild); 154 command_line->AppendSwitchASCII(switches::kProcessType, kMashChild);
156 #if defined(OS_WIN) 155 #if defined(OS_WIN)
157 command_line->AppendArg(switches::kPrefetchArgumentOther); 156 command_line->AppendArg(switches::kPrefetchArgumentOther);
158 #endif 157 #endif
159 return; 158 return;
160 } 159 }
161 160
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 std::unique_ptr<base::MessageLoop> message_loop; 234 std::unique_ptr<base::MessageLoop> message_loop;
236 #if defined(OS_LINUX) 235 #if defined(OS_LINUX)
237 base::AtExitManager exit_manager; 236 base::AtExitManager exit_manager;
238 #endif 237 #endif
239 if (!IsChild()) 238 if (!IsChild())
240 message_loop.reset(new base::MessageLoop(base::MessageLoop::TYPE_UI)); 239 message_loop.reset(new base::MessageLoop(base::MessageLoop::TYPE_UI));
241 MashRunner mash_runner; 240 MashRunner mash_runner;
242 mash_runner.Run(); 241 mash_runner.Run();
243 return 0; 242 return 0;
244 } 243 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/base/mojo_test_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698