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

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

Issue 9581021: [refactor] Split up SourceTracker into SourceTracker + EventsTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update based on mmenke comments Created 8 years, 10 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/source_entry.js
diff --git a/chrome/browser/resources/net_internals/source_entry.js b/chrome/browser/resources/net_internals/source_entry.js
index f4d3ce0b097c97f277134646be78ab6decaf2be9..4b1c7d8dadc63309bbf09b047b023a634d83b974 100644
--- a/chrome/browser/resources/net_internals/source_entry.js
+++ b/chrome/browser/resources/net_internals/source_entry.js
@@ -108,7 +108,7 @@ var SourceEntry = (function() {
if (e.params.source_dependency != undefined) {
var parentId = e.params.source_dependency.id;
this.description_ =
- g_browser.sourceTracker.getDescription(parentId);
+ SourceTracker.getInstance().getDescription(parentId);
}
break;
case LogSourceType.UDP_SOCKET:
@@ -119,7 +119,7 @@ var SourceEntry = (function() {
if (this.entries_[0].type == LogEventType.SOCKET_ALIVE &&
this.entries_[0].params.source_dependency != undefined) {
var parentId = this.entries_[0].params.source_dependency.id;
- var parent = g_browser.sourceTracker.getSourceEntry(parentId);
+ var parent = SourceTracker.getInstance().getSourceEntry(parentId);
if (parent &&
parent.getSourceType() ==
LogSourceType.HOST_RESOLVER_IMPL_JOB &&
« no previous file with comments | « chrome/browser/resources/net_internals/main.js ('k') | chrome/browser/resources/net_internals/source_tracker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698