| Index: chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
|
| index a0a30f852d88ef2c2a92161741e16ed68759bf02..e8ea86f8757ca05cf4553429627aa86fce7c89a4 100644
|
| --- a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
|
| +++ b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
|
| @@ -389,6 +389,8 @@ class ExtensionWebstoreGetWebGLStatusTest : public InProcessBrowserTest {
|
| // If Gpu access is disallowed then WebGL will not be available.
|
| if (!content::GpuDataManager::GetInstance()->GpuAccessAllowed(NULL))
|
| webgl_allowed = false;
|
| + if (content::GpuDataManager::GetInstance()->ShouldUseSwiftShader())
|
| + webgl_allowed = true;
|
|
|
| static const char kEmptyArgs[] = "[]";
|
| static const char kWebGLStatusAllowed[] = "webgl_allowed";
|
| @@ -430,8 +432,13 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstoreGetWebGLStatusTest, Blocked) {
|
| gpu::GPUInfo gpu_info;
|
| content::GpuDataManager::GetInstance()->InitializeForTesting(
|
| json_blacklist, gpu_info);
|
| - EXPECT_TRUE(content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
|
| - gpu::GPU_FEATURE_TYPE_WEBGL));
|
| + if (content::GpuDataManager::GetInstance()->ShouldUseSwiftShader()) {
|
| + EXPECT_FALSE(content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
|
| + gpu::GPU_FEATURE_TYPE_WEBGL));
|
| + } else {
|
| + EXPECT_TRUE(content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
|
| + gpu::GPU_FEATURE_TYPE_WEBGL));
|
| + }
|
|
|
| bool webgl_allowed = false;
|
| RunTest(webgl_allowed);
|
|
|