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

Side by Side Diff: mojo/runner/context.cc

Issue 1126393006: core_services: Run different services in different processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests by never having an empty qualifier. Created 5 years, 7 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 | « mandoline/app/core_services_initialization.cc ('k') | mojo/runner/switches.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/context.h" 5 #include "mojo/runner/context.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 14 matching lines...) Expand all
25 #include "mojo/edk/embedder/simple_platform_support.h" 25 #include "mojo/edk/embedder/simple_platform_support.h"
26 #include "mojo/public/cpp/application/application_connection.h" 26 #include "mojo/public/cpp/application/application_connection.h"
27 #include "mojo/public/cpp/application/application_delegate.h" 27 #include "mojo/public/cpp/application/application_delegate.h"
28 #include "mojo/public/cpp/application/application_impl.h" 28 #include "mojo/public/cpp/application/application_impl.h"
29 #include "mojo/runner/in_process_native_runner.h" 29 #include "mojo/runner/in_process_native_runner.h"
30 #include "mojo/runner/out_of_process_native_runner.h" 30 #include "mojo/runner/out_of_process_native_runner.h"
31 #include "mojo/runner/switches.h" 31 #include "mojo/runner/switches.h"
32 #include "mojo/services/tracing/tracing.mojom.h" 32 #include "mojo/services/tracing/tracing.mojom.h"
33 #include "mojo/shell/application_loader.h" 33 #include "mojo/shell/application_loader.h"
34 #include "mojo/shell/application_manager.h" 34 #include "mojo/shell/application_manager.h"
35 #include "mojo/shell/switches.h"
35 #include "mojo/util/filename_util.h" 36 #include "mojo/util/filename_util.h"
36 #include "url/gurl.h" 37 #include "url/gurl.h"
37 38
38 namespace mojo { 39 namespace mojo {
39 namespace runner { 40 namespace runner {
40 namespace { 41 namespace {
41 42
42 // Used to ensure we only init once. 43 // Used to ensure we only init once.
43 class Setup { 44 class Setup {
44 public: 45 public:
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { 318 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) {
318 DCHECK_EQ(base::MessageLoop::current()->task_runner(), 319 DCHECK_EQ(base::MessageLoop::current()->task_runner(),
319 task_runners_->shell_runner()); 320 task_runners_->shell_runner());
320 base::MessageLoop::current()->Quit(); 321 base::MessageLoop::current()->Quit();
321 } 322 }
322 } 323 }
323 } 324 }
324 325
325 } // namespace runner 326 } // namespace runner
326 } // namespace mojo 327 } // namespace mojo
OLDNEW
« no previous file with comments | « mandoline/app/core_services_initialization.cc ('k') | mojo/runner/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698