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..967092ef0a4799d52b2fed7f191083ae2696d535 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::IsWin32kRendererLockdownEnabled() && |
base::win::GetVersion() >= base::win::VERSION_WIN8) { |
return CreateImageDataSimple(instance, format, size, init_to_zero); |
} |