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

Unified Diff: content/public/common/content_switches.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, 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: content/public/common/content_switches.cc
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 9a41cc6992d4ed65d78bb06cf697457d120b8feb..c704bbe423900716032983dd7857c5bd8bb31fd6 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -4,9 +4,6 @@
#include "content/public/common/content_switches.h"
-#include "base/command_line.h"
-#include "base/metrics/field_trial.h"
-
namespace switches {
// The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
@@ -958,20 +955,6 @@ const char kEnableNpapi[] = "enable-npapi";
const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver";
#endif
-#if defined(OS_WIN)
-bool IsWin32kRendererLockdownEnabled() {
- const std::string group_name =
- base::FieldTrialList::FindFullName("Win32kLockdown");
- const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
- if (cmd_line->HasSwitch(kEnableWin32kRendererLockDown))
- return true;
- if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown))
- return false;
- // Default.
- return group_name == "Enabled";
-}
-#endif
-
// Don't dump stuff here, follow the same order as the header.
} // namespace switches

Powered by Google App Engine
This is Rietveld 408576698