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

Unified Diff: content/browser/resources/gpu/browser_bridge.js

Issue 1430993002: Introduce isSandboxedForTesting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment Created 5 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/gpu/browser_bridge.js
diff --git a/content/browser/resources/gpu/browser_bridge.js b/content/browser/resources/gpu/browser_bridge.js
index 1cf980fe74cab86c24adcb033b5e29f873f8e962..b835f44207ce8c5cfe871c53733cad16fb499b5a 100644
--- a/content/browser/resources/gpu/browser_bridge.js
+++ b/content/browser/resources/gpu/browser_bridge.js
@@ -156,6 +156,17 @@ cr.define('gpu', function() {
return this.logMessages_;
},
+ /**
+ * Returns the value of the "Sandboxed" row.
+ */
+ isSandboxedForTesting : function() {
+ for (i = 0; i < this.gpuInfo_.basic_info.length; ++i) {
+ var info = this.gpuInfo_.basic_info[i];
+ if (info.description == "Sandboxed")
+ return info.value;
+ }
+ return false;
+ }
};
return {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698