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

Side by Side Diff: shell/context.cc

Issue 1334213002: Support for tracing app initialization. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 "shell/context.h" 5 #include "shell/context.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 10 matching lines...) Expand all
21 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
22 #include "base/trace_event/trace_event.h" 22 #include "base/trace_event/trace_event.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "mojo/common/trace_provider_impl.h" 24 #include "mojo/common/trace_provider_impl.h"
25 #include "mojo/common/tracing_impl.h" 25 #include "mojo/common/tracing_impl.h"
26 #include "mojo/edk/embedder/embedder.h" 26 #include "mojo/edk/embedder/embedder.h"
27 #include "mojo/edk/embedder/simple_platform_support.h" 27 #include "mojo/edk/embedder/simple_platform_support.h"
28 #include "mojo/public/cpp/application/application_connection.h" 28 #include "mojo/public/cpp/application/application_connection.h"
29 #include "mojo/public/cpp/application/application_delegate.h" 29 #include "mojo/public/cpp/application/application_delegate.h"
30 #include "mojo/public/cpp/application/application_impl.h" 30 #include "mojo/public/cpp/application/application_impl.h"
31 #include "mojo/public/cpp/bindings/strong_binding.h"
31 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" 32 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
32 #include "shell/application_manager/application_loader.h" 33 #include "shell/application_manager/application_loader.h"
33 #include "shell/application_manager/application_manager.h" 34 #include "shell/application_manager/application_manager.h"
34 #include "shell/background_application_loader.h" 35 #include "shell/background_application_loader.h"
35 #include "shell/command_line_util.h" 36 #include "shell/command_line_util.h"
36 #include "shell/filename_util.h" 37 #include "shell/filename_util.h"
37 #include "shell/in_process_native_runner.h" 38 #include "shell/in_process_native_runner.h"
38 #include "shell/out_of_process_native_runner.h" 39 #include "shell/out_of_process_native_runner.h"
39 #include "shell/switches.h" 40 #include "shell/switches.h"
40 #include "shell/tracer.h" 41 #include "shell/tracer.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 app_urls_.erase(url); 372 app_urls_.erase(url);
372 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { 373 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) {
373 DCHECK_EQ(base::MessageLoop::current()->task_runner(), 374 DCHECK_EQ(base::MessageLoop::current()->task_runner(),
374 task_runners_->shell_runner()); 375 task_runners_->shell_runner());
375 base::MessageLoop::current()->Quit(); 376 base::MessageLoop::current()->Quit();
376 } 377 }
377 } 378 }
378 } 379 }
379 380
380 } // namespace shell 381 } // namespace shell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698