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

Unified Diff: chrome/browser/resources/net_internals/eventsview.js

Issue 6025017: Adds the ability to load JSON log files to about:net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Put load log button on its own line Created 9 years, 11 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
Index: chrome/browser/resources/net_internals/eventsview.js
===================================================================
--- chrome/browser/resources/net_internals/eventsview.js (revision 72508)
+++ chrome/browser/resources/net_internals/eventsview.js (working copy)
@@ -475,10 +475,20 @@
/**
* Called whenever all log events are deleted.
*/
-EventsView.prototype.onAllLogEntriesDeleted = function(offset) {
+EventsView.prototype.onAllLogEntriesDeleted = function() {
this.initializeSourceList_();
};
+/**
+ * Called when either a log file is loaded or when going back to actively
+ * logging events. In either case, called after clearing the old entries,
+ * but before getting any new ones.
+ */
+EventsView.prototype.onSetIsViewingLogFile = function(isViewingLogFile) {
+ // Needed to sort new sourceless entries correctly.
+ this.maxReceivedSourceId_ = 0;
+};
+
EventsView.prototype.incrementPrefilterCount = function(offset) {
this.numPrefilter_ += offset;
this.invalidateFilterCounter_();
« no previous file with comments | « chrome/browser/resources/net_internals/dataview.js ('k') | chrome/browser/resources/net_internals/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698