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

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

Issue 2715563002: Moving SwiftShader from component to bundled library (Closed)
Patch Set: Prevented !GpuAccessAllowed() from enabling SwiftShader Created 3 years, 10 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
Index: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index 1c77345bbea40745a727ff99c9c251e938af09a7..8679dfa55046421aa3b7de2636c3529e9ac85554 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -4078,7 +4078,8 @@ IN_PROC_BROWSER_TEST_F(HardwareAccelerationModePolicyTest,
HardwareAccelerationDisabled) {
// Verifies that hardware acceleration can be disabled with policy.
EXPECT_FALSE(
- content::GpuDataManager::GetInstance()->GpuAccessAllowed(nullptr));
+ content::GpuDataManager::GetInstance()->GpuAccessAllowed(nullptr) &&
emaxx 2017/03/02 16:06:29 I'm not entirely following this. Is this changed b
sugoi1 2017/03/02 16:23:16 That's indeed the first line of GpuAccessAllowed()
sugoi 2017/03/06 18:31:42 After looking into this, I think this code is bett
emaxx 2017/03/06 20:10:51 I see, thanks for the explanation. I'd still find
+ !content::GpuDataManager::GetInstance()->ShouldUseSwiftShader());
}
#endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698