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

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

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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
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"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/strings/string_split.h" 18 #include "base/strings/string_split.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/trace_event/trace_event.h" 20 #include "base/trace_event/trace_event.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "mojo/application/public/cpp/application_connection.h"
23 #include "mojo/application/public/cpp/application_delegate.h"
24 #include "mojo/application/public/cpp/application_impl.h"
22 #include "mojo/common/trace_controller_impl.h" 25 #include "mojo/common/trace_controller_impl.h"
23 #include "mojo/common/tracing_impl.h" 26 #include "mojo/common/tracing_impl.h"
24 #include "mojo/edk/embedder/embedder.h" 27 #include "mojo/edk/embedder/embedder.h"
25 #include "mojo/edk/embedder/simple_platform_support.h" 28 #include "mojo/edk/embedder/simple_platform_support.h"
26 #include "mojo/public/cpp/application/application_connection.h"
27 #include "mojo/public/cpp/application/application_delegate.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/shell/switches.h"
36 #include "mojo/util/filename_util.h" 36 #include "mojo/util/filename_util.h"
37 #include "url/gurl.h" 37 #include "url/gurl.h"
38 38
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { 324 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) {
325 DCHECK_EQ(base::MessageLoop::current()->task_runner(), 325 DCHECK_EQ(base::MessageLoop::current()->task_runner(),
326 task_runners_->shell_runner()); 326 task_runners_->shell_runner());
327 base::MessageLoop::current()->Quit(); 327 base::MessageLoop::current()->Quit();
328 } 328 }
329 } 329 }
330 } 330 }
331 331
332 } // namespace runner 332 } // namespace runner
333 } // namespace mojo 333 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698