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

Unified Diff: chrome/browser/resources/profiler.js

Issue 8568036: Remove about:tracking. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove an unused header Created 9 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 | « chrome/browser/resources/profiler.html ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/profiler.js
===================================================================
--- chrome/browser/resources/profiler.js (revision 110207)
+++ chrome/browser/resources/profiler.js (working copy)
@@ -99,6 +99,8 @@
// "PAC threads" will be merged together.
var MERGE_SIMILAR_THREADS_CHECKBOX_ID = 'merge-similar-threads-checkbox';
+ var RESET_DATA_LINK_ID = 'reset-data-link';
+
// --------------------------------------------------------------------------
// Row keys
// --------------------------------------------------------------------------
@@ -1197,6 +1199,14 @@
}
}
+ if (newRow[KEY_COUNT] == 0) {
+ // When resetting the data, it is possible for the backend to give us
+ // counts of "0". There is no point adding these rows (in fact they
+ // will cause us to do divide by zeros when calculating averages and
+ // stuff), so we skip past them.
+ continue;
+ }
+
// Add our computed properties.
augmentDataRow(newRow);
@@ -1273,6 +1283,9 @@
$(MERGE_SIMILAR_THREADS_CHECKBOX_ID).onchange =
this.onMergeSimilarThreadsCheckboxChanged_.bind(this);
+
+ $(RESET_DATA_LINK_ID).onclick =
+ g_browserBridge.sendResetData.bind(g_browserBridge);
},
toggleEditColumns_: function() {
« no previous file with comments | « chrome/browser/resources/profiler.html ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698