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_(); |