| Index: content/renderer/pepper/resource_creation_impl.cc
|
| diff --git a/content/renderer/pepper/resource_creation_impl.cc b/content/renderer/pepper/resource_creation_impl.cc
|
| index 4a693256ae0bed669f87885196139e1d6d3c2e70..ac5ee99ae660f26810274d0942ec98c1cae57549 100644
|
| --- a/content/renderer/pepper/resource_creation_impl.cc
|
| +++ b/content/renderer/pepper/resource_creation_impl.cc
|
| @@ -140,8 +140,7 @@ PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance,
|
| // TODO(ananta)
|
| // Look into whether this causes a loss of functionality. From cursory
|
| // testing things seem to work well.
|
| - if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableWin32kRendererLockDown) &&
|
| + if (switches::Win32kRendererLockdownEnabled() &&
|
| base::win::GetVersion() >= base::win::VERSION_WIN8) {
|
| return CreateImageDataSimple(instance, format, size, init_to_zero);
|
| }
|
|
|