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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 22 matching lines...) Expand all Loading... | |
33 #include "content/browser/histogram_synchronizer.h" | 33 #include "content/browser/histogram_synchronizer.h" |
34 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 34 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
35 #include "content/browser/media/media_internals.h" | 35 #include "content/browser/media/media_internals.h" |
36 #include "content/browser/net/browser_online_state_observer.h" | 36 #include "content/browser/net/browser_online_state_observer.h" |
37 #include "content/browser/renderer_host/media/media_stream_manager.h" | 37 #include "content/browser/renderer_host/media/media_stream_manager.h" |
38 #include "content/browser/speech/speech_recognition_manager_impl.h" | 38 #include "content/browser/speech/speech_recognition_manager_impl.h" |
39 #include "content/browser/startup_task_runner.h" | 39 #include "content/browser/startup_task_runner.h" |
40 #include "content/browser/time_zone_monitor.h" | 40 #include "content/browser/time_zone_monitor.h" |
41 #include "content/browser/webui/content_web_ui_controller_factory.h" | 41 #include "content/browser/webui/content_web_ui_controller_factory.h" |
42 #include "content/browser/webui/url_data_manager.h" | 42 #include "content/browser/webui/url_data_manager.h" |
43 #include "content/common/content_switches_internal.h" | |
43 #include "content/public/browser/browser_main_parts.h" | 44 #include "content/public/browser/browser_main_parts.h" |
44 #include "content/public/browser/browser_shutdown.h" | 45 #include "content/public/browser/browser_shutdown.h" |
45 #include "content/public/browser/content_browser_client.h" | 46 #include "content/public/browser/content_browser_client.h" |
46 #include "content/public/browser/render_process_host.h" | 47 #include "content/public/browser/render_process_host.h" |
47 #include "content/public/browser/tracing_controller.h" | 48 #include "content/public/browser/tracing_controller.h" |
48 #include "content/public/common/content_switches.h" | 49 #include "content/public/common/content_switches.h" |
49 #include "content/public/common/main_function_params.h" | 50 #include "content/public/common/main_function_params.h" |
50 #include "content/public/common/result_codes.h" | 51 #include "content/public/common/result_codes.h" |
51 #include "crypto/nss_util.h" | 52 #include "crypto/nss_util.h" |
52 #include "device/battery/battery_status_service.h" | 53 #include "device/battery/battery_status_service.h" |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1058 established_gpu_channel = false; | 1059 established_gpu_channel = false; |
1059 BrowserGpuChannelHostFactory::Initialize(established_gpu_channel); | 1060 BrowserGpuChannelHostFactory::Initialize(established_gpu_channel); |
1060 #endif | 1061 #endif |
1061 | 1062 |
1062 #if defined(OS_LINUX) && defined(USE_UDEV) | 1063 #if defined(OS_LINUX) && defined(USE_UDEV) |
1063 device_monitor_linux_.reset(new DeviceMonitorLinux()); | 1064 device_monitor_linux_.reset(new DeviceMonitorLinux()); |
1064 #elif defined(OS_MACOSX) | 1065 #elif defined(OS_MACOSX) |
1065 device_monitor_mac_.reset(new DeviceMonitorMac()); | 1066 device_monitor_mac_.reset(new DeviceMonitorMac()); |
1066 #endif | 1067 #endif |
1067 | 1068 |
1069 #if defined(OS_WIN) | |
1070 LOCAL_HISTOGRAM_BOOLEAN("Windows.Win32kRendererLockdown", | |
1071 IsWin32kRendererLockdownEnabled()); | |
1072 #endif | |
Will Harris
2015/01/27 04:12:17
wasn't sure the best place to put this histogram.
| |
1068 // RDH needs the IO thread to be created | 1073 // RDH needs the IO thread to be created |
1069 { | 1074 { |
1070 TRACE_EVENT0("startup", | 1075 TRACE_EVENT0("startup", |
1071 "BrowserMainLoop::BrowserThreadsStarted:InitResourceDispatcherHost"); | 1076 "BrowserMainLoop::BrowserThreadsStarted:InitResourceDispatcherHost"); |
1072 resource_dispatcher_host_.reset(new ResourceDispatcherHostImpl()); | 1077 resource_dispatcher_host_.reset(new ResourceDispatcherHostImpl()); |
1073 } | 1078 } |
1074 | 1079 |
1075 // MediaStreamManager needs the IO thread to be created. | 1080 // MediaStreamManager needs the IO thread to be created. |
1076 { | 1081 { |
1077 TRACE_EVENT0("startup", | 1082 TRACE_EVENT0("startup", |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1240 | 1245 |
1241 void BrowserMainLoop::EndStartupTracing() { | 1246 void BrowserMainLoop::EndStartupTracing() { |
1242 is_tracing_startup_ = false; | 1247 is_tracing_startup_ = false; |
1243 TracingController::GetInstance()->DisableRecording( | 1248 TracingController::GetInstance()->DisableRecording( |
1244 TracingController::CreateFileSink( | 1249 TracingController::CreateFileSink( |
1245 startup_trace_file_, | 1250 startup_trace_file_, |
1246 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1251 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
1247 } | 1252 } |
1248 | 1253 |
1249 } // namespace content | 1254 } // namespace content |
OLD | NEW |