| Index: content/common/sandbox_win.cc
|
| diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
|
| index fd04f762a692d9af0ba3bb6d21d2d6aadc208a3c..f2db8ecb8ca0f0610ec8fd57f1dcf36665c8dc80 100644
|
| --- a/content/common/sandbox_win.cc
|
| +++ b/content/common/sandbox_win.cc
|
| @@ -620,10 +620,9 @@ base::Process StartSandboxedProcess(
|
| sandbox::MITIGATION_DEP_NO_ATL_THUNK |
|
| sandbox::MITIGATION_SEHOP;
|
|
|
| - if (base::win::GetVersion() >= base::win::VERSION_WIN8 &&
|
| - type_str == switches::kRendererProcess &&
|
| - browser_command_line.HasSwitch(
|
| - switches::kEnableWin32kRendererLockDown)) {
|
| + if (base::win::GetVersion() >= base::win::VERSION_WIN8 &&
|
| + type_str == switches::kRendererProcess &&
|
| + switches::Win32kRendererLockdownEnabled()) {
|
| if (policy->AddRule(sandbox::TargetPolicy::SUBSYS_WIN32K_LOCKDOWN,
|
| sandbox::TargetPolicy::FAKE_USER_GDI_INIT,
|
| NULL) != sandbox::SBOX_ALL_OK) {
|
|
|