OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/browser/browser_main_runner.h" | 5 #include "content/public/browser/browser_main_runner.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" |
10 #include "base/debug/leak_annotations.h" | 10 #include "base/debug/leak_annotations.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
14 #include "base/metrics/statistics_recorder.h" | 15 #include "base/metrics/statistics_recorder.h" |
15 #include "base/profiler/scoped_profile.h" | 16 #include "base/profiler/scoped_profile.h" |
16 #include "base/profiler/scoped_tracker.h" | 17 #include "base/profiler/scoped_tracker.h" |
17 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
19 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" | 20 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
20 #include "base/trace_event/trace_event.h" | 21 #include "base/trace_event/trace_event.h" |
21 #include "base/tracked_objects.h" | 22 #include "base/tracked_objects.h" |
22 #include "build/build_config.h" | 23 #include "build/build_config.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 return new BrowserMainRunnerImpl(); | 242 return new BrowserMainRunnerImpl(); |
242 } | 243 } |
243 | 244 |
244 // static | 245 // static |
245 bool BrowserMainRunner::ExitedMainMessageLoop() { | 246 bool BrowserMainRunner::ExitedMainMessageLoop() { |
246 return !(g_exited_main_message_loop == nullptr) && | 247 return !(g_exited_main_message_loop == nullptr) && |
247 g_exited_main_message_loop.Get().IsSet(); | 248 g_exited_main_message_loop.Get().IsSet(); |
248 } | 249 } |
249 | 250 |
250 } // namespace content | 251 } // namespace content |
OLD | NEW |