| Index: chrome/browser/resources/gpu_internals/browser_bridge.js
|
| diff --git a/chrome/browser/resources/gpu_internals/browser_bridge.js b/chrome/browser/resources/gpu_internals/browser_bridge.js
|
| index f47451592cd535214e1aa14542e6a83b9701e101..43d58dc3e1247395e7fe0e2d36f815c112963a00 100644
|
| --- a/chrome/browser/resources/gpu_internals/browser_bridge.js
|
| +++ b/chrome/browser/resources/gpu_internals/browser_bridge.js
|
| @@ -26,6 +26,7 @@ cr.define('gpu', function() {
|
| if (!this.debugMode_) {
|
| chrome.send('browserBridgeInitialized');
|
| this.beginRequestClientInfo_();
|
| + this.beginRequestSandboxInfo_();
|
| this.beginRequestLogMessages_();
|
| this.beginRequestCrashList_();
|
| }
|
| @@ -38,9 +39,11 @@ cr.define('gpu', function() {
|
| // set up things according to the simulated data
|
| this.gpuInfo_ = data.gpuInfo;
|
| this.clientInfo_ = data.clientInfo;
|
| + this.sandboxInfo_ = data.sandboxInfo;
|
| this.logMessages_ = data.logMessages;
|
| cr.dispatchSimpleEvent(this, 'gpuInfoUpdate');
|
| cr.dispatchSimpleEvent(this, 'clientInfoChange');
|
| + cr.dispatchSimpleEvent(this, 'sandboxInfoChange');
|
| cr.dispatchSimpleEvent(this, 'logMessagesChange');
|
| },
|
|
|
| @@ -118,6 +121,28 @@ cr.define('gpu', function() {
|
| },
|
|
|
| /**
|
| + * This function begins a request for the SandboxInfo. If it comes back
|
| + * as undefined, then we will issue the request again in 250ms.
|
| + */
|
| + beginRequestSandboxInfo_: function() {
|
| + this.callAsync('requestSandboxInfo', undefined, (function(data) {
|
| + if (data === undefined) { // try again in 250 ms
|
| + window.setTimeout(this.beginRequestSandboxInfo_.bind(this), 250);
|
| + } else {
|
| + this.sandboxInfo_ = data;
|
| + cr.dispatchSimpleEvent(this, 'sandboxInfoChange');
|
| + }
|
| + }).bind(this));
|
| + },
|
| +
|
| + /**
|
| + * Returns information about the currently runnign Chrome sandbox.
|
| + */
|
| + get sandboxInfo() {
|
| + return this.sandboxInfo_;
|
| + },
|
| +
|
| + /**
|
| * This function checks for new GPU_LOG messages.
|
| * If any are found, a refresh is triggered.
|
| */
|
|
|