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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 872673002: Do not use win32k renderer lockdown if DirectWrite is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move IsWin32kRendererLockdownEnabled to content/common Created 5 years, 10 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
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | content/common/content_switches_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | content/common/content_switches_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698