diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-03 08:51:56 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-03 08:51:56 +0000 |
commit | 1420d5e4d6775181247fec766e8e5ff01106f884 (patch) | |
tree | c1d3f8f7553b977eb8d4e1ccc493dfbfb6f18b05 /chrome/browser/resources/net_internals/timeline_view.js | |
parent | 32c800ebcabf081547a6bfac816cd458b4e6acdb (diff) | |
download | chromium_src-1420d5e4d6775181247fec766e8e5ff01106f884.zip chromium_src-1420d5e4d6775181247fec766e8e5ff01106f884.tar.gz chromium_src-1420d5e4d6775181247fec766e8e5ff01106f884.tar.bz2 |
[refactor] Split up SourceTracker into SourceTracker + EventsTracker.
This is in preparation for adding some extra functionality at the EventsTracker layer (max events throttling).
Review URL: http://codereview.chromium.org/9581021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/net_internals/timeline_view.js')
-rw-r--r-- | chrome/browser/resources/net_internals/timeline_view.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/resources/net_internals/timeline_view.js b/chrome/browser/resources/net_internals/timeline_view.js index fc6454c..04e5422 100644 --- a/chrome/browser/resources/net_internals/timeline_view.js +++ b/chrome/browser/resources/net_internals/timeline_view.js @@ -51,7 +51,7 @@ var TimelineView = (function() { // them on to each DataSource. We initialize the graph range to initially // include all events, but after that, we only update it to be the current // time on a timer. - g_browser.sourceTracker.addLogEntryObserver(this); + EventsTracker.getInstance().addLogEntryObserver(this); this.graphRangeInitialized_ = false; } @@ -233,8 +233,7 @@ var TimelineView = (function() { }, /** - * When log entries are deleted, simpler to recreate the DataSeries, rather - * than clearing them. + * When all log entries are deleted, recreate the DataSeries. */ onAllLogEntriesDeleted: function() { this.graphRangeInitialized_ = false; @@ -243,7 +242,7 @@ var TimelineView = (function() { onReceivedLogEntries: function(entries) { // Pass each entry to every DataSeries, one at a time. Not having each - // data series get data directly from the SourceTracker saves us from + // data series get data directly from the EventsTracker saves us from // having very un-Javascript-like destructors for when we load new, // constants and slightly simplifies DataSeries objects. for (var entry = 0; entry < entries.length; ++entry) { |