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/browser/browser_main_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/memory_pressure_monitor.h" | 10 #include "base/memory/memory_pressure_monitor.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/pending_task.h" | 14 #include "base/pending_task.h" |
15 #include "base/power_monitor/power_monitor.h" | 15 #include "base/power_monitor/power_monitor.h" |
16 #include "base/power_monitor/power_monitor_device_source.h" | 16 #include "base/power_monitor/power_monitor_device_source.h" |
17 #include "base/process/process_metrics.h" | 17 #include "base/process/process_metrics.h" |
18 #include "base/profiler/scoped_profile.h" | 18 #include "base/profiler/scoped_profile.h" |
19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
20 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
21 #include "base/strings/string_split.h" | 21 #include "base/strings/string_split.h" |
22 #include "base/synchronization/lock.h" | |
kinuko
2015/05/22 11:58:40
Unnecessary change; will remove this
| |
22 #include "base/system_monitor/system_monitor.h" | 23 #include "base/system_monitor/system_monitor.h" |
23 #include "base/thread_task_runner_handle.h" | 24 #include "base/thread_task_runner_handle.h" |
24 #include "base/threading/thread_restrictions.h" | 25 #include "base/threading/thread_restrictions.h" |
25 #include "base/timer/hi_res_timer_manager.h" | 26 #include "base/timer/hi_res_timer_manager.h" |
26 #include "base/trace_event/memory_dump_manager.h" | 27 #include "base/trace_event/memory_dump_manager.h" |
27 #include "base/trace_event/trace_event.h" | 28 #include "base/trace_event/trace_event.h" |
28 #include "content/browser/browser_thread_impl.h" | 29 #include "content/browser/browser_thread_impl.h" |
29 #include "content/browser/device_sensors/device_inertial_sensor_service.h" | 30 #include "content/browser/device_sensors/device_inertial_sensor_service.h" |
30 #include "content/browser/dom_storage/dom_storage_area.h" | 31 #include "content/browser/dom_storage/dom_storage_area.h" |
31 #include "content/browser/download/save_file_manager.h" | 32 #include "content/browser/download/save_file_manager.h" |
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1329 | 1330 |
1330 void BrowserMainLoop::EndStartupTracing() { | 1331 void BrowserMainLoop::EndStartupTracing() { |
1331 is_tracing_startup_ = false; | 1332 is_tracing_startup_ = false; |
1332 TracingController::GetInstance()->DisableRecording( | 1333 TracingController::GetInstance()->DisableRecording( |
1333 TracingController::CreateFileSink( | 1334 TracingController::CreateFileSink( |
1334 startup_trace_file_, | 1335 startup_trace_file_, |
1335 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1336 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
1336 } | 1337 } |
1337 | 1338 |
1338 } // namespace content | 1339 } // namespace content |
OLD | NEW |