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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2745733002: Revert of Added HardwareAccelerationEnabled() function (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index 05b84638e67c842db856e62a8487cfb770576804..4bd7a387391e545c07c954fc4fc6f82fe50d372a 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -1206,7 +1206,7 @@
IN_PROC_BROWSER_TEST_F(PolicyTest, Disable3DAPIs) {
// This test assumes Gpu access.
- if (!content::GpuDataManager::GetInstance()->HardwareAccelerationEnabled())
+ if (!content::GpuDataManager::GetInstance()->GpuAccessAllowed(NULL))
return;
ui_test_utils::NavigateToURL(browser(), GURL(url::kAboutBlankURL));
@@ -4137,7 +4137,7 @@
HardwareAccelerationDisabled) {
// Verifies that hardware acceleration can be disabled with policy.
EXPECT_FALSE(
- content::GpuDataManager::GetInstance()->HardwareAccelerationEnabled());
+ content::GpuDataManager::GetInstance()->GpuAccessAllowed(nullptr));
}
#endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698