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

Unified Diff: chrome/browser/chrome_browser_main_win.cc

Issue 857123002: Disable Win32k renderer lockdown if DirectWrite is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cloudprint Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_browser_main_win.cc
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index f3066d1d2c26ed8a1f5d1a64fc68231db455253f..ba6b8677e46a5ea6f210fd849b4fe986d9a3ba11 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -237,8 +237,7 @@ int ChromeBrowserMainPartsWin::PreCreateThreads() {
// launched for the plugin does not have the Win32K lockdown mode enabled.
// TODO(ananta)
// Revisit this when the pdf plugin uses skia and stops using GDI.
- if (switches::IsWin32kRendererLockdownEnabled() &&
- base::win::GetVersion() >= base::win::VERSION_WIN8) {
+ if (switches::IsWin32kRendererLockdownEnabled(false)) {
base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableOutOfProcessPdf);
}
@@ -275,7 +274,7 @@ void ChromeBrowserMainPartsWin::PostBrowserStart() {
UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice());
UMA_HISTOGRAM_BOOLEAN("Windows.Win32kRendererLockdown",
- switches::IsWin32kRendererLockdownEnabled());
+ switches::IsWin32kRendererLockdownEnabled(false));
// Set up a task to verify installed modules in the current process. Use a
// delay to reduce the impact on startup time.
« no previous file with comments | « no previous file | chrome/browser/ui/startup/bad_flags_prompt.cc » ('j') | chrome/browser/ui/startup/bad_flags_prompt.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698