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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 cr.define('gpu', function() { 4 cr.define('gpu', function() {
5 /** 5 /**
6 * This class provides a 'bridge' for communicating between javascript and the 6 * This class provides a 'bridge' for communicating between javascript and the
7 * browser. When run outside of WebUI, e.g. as a regular webpage, it provides 7 * browser. When run outside of WebUI, e.g. as a regular webpage, it provides
8 * synthetic data to assist in testing. 8 * synthetic data to assist in testing.
9 * @constructor 9 * @constructor
10 */ 10 */
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 }).bind(this)); 149 }).bind(this));
150 }, 150 },
151 151
152 /** 152 /**
153 * Returns an array of log messages issued by the GPU process, if any. 153 * Returns an array of log messages issued by the GPU process, if any.
154 */ 154 */
155 get logMessages() { 155 get logMessages() {
156 return this.logMessages_; 156 return this.logMessages_;
157 }, 157 },
158 158
159 /**
160 * Returns the value of the "Sandboxed" row.
161 */
162 isSandboxedForTesting : function() {
163 for (i = 0; i < this.gpuInfo_.basic_info.length; ++i) {
164 var info = this.gpuInfo_.basic_info[i];
165 if (info.description == "Sandboxed")
166 return info.value;
167 }
168 return false;
169 }
159 }; 170 };
160 171
161 return { 172 return {
162 BrowserBridge: BrowserBridge 173 BrowserBridge: BrowserBridge
163 }; 174 };
164 }); 175 });
OLDNEW
« 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