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

Unified Diff: chrome/browser/resources/gpu_internals/browser_bridge.js

Issue 9706037: Display crash report IDs in about:gpu (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | chrome/browser/resources/gpu_internals/info_view.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/gpu_internals/browser_bridge.js
===================================================================
--- chrome/browser/resources/gpu_internals/browser_bridge.js (revision 126529)
+++ chrome/browser/resources/gpu_internals/browser_bridge.js (working copy)
@@ -27,6 +27,7 @@
chrome.send('browserBridgeInitialized');
this.beginRequestClientInfo_();
this.beginRequestLogMessages_();
+ this.beginRequestCrashList_();
}
}
@@ -137,6 +138,28 @@
*/
get logMessages() {
return this.logMessages_;
+ },
+
+ /**
+ * This function checks for previous crash list.
+ * If it's not available yet, a refresh is triggered.
+ */
+ beginRequestCrashList_: function() {
+ this.callAsync('requestCrashList', undefined, (function(data) {
+ if (data === undefined) { // try again in 250 ms
+ window.setTimeout(this.beginRequestCrashList_.bind(this), 250);
+ } else {
+ this.crashList_ = data;
+ cr.dispatchSimpleEvent(this, 'crashListChange');
+ }
+ }).bind(this));
+ },
+
+ /**
+ * Returns an array of log messages issued by the GPU process, if any.
+ */
+ get crashList() {
+ return this.crashList_;
}
};
« no previous file with comments | « no previous file | chrome/browser/resources/gpu_internals/info_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698