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

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

Issue 8200011: Add NetLog support to UDP sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update year Created 9 years, 2 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_tracker.js
===================================================================
--- chrome/browser/resources/net_internals/source_tracker.js (revision 104713)
+++ chrome/browser/resources/net_internals/source_tracker.js (working copy)
@@ -77,6 +77,17 @@
return this.sourceEntries_[id];
};
+/**
+ * Returns the description of the specified SourceEntry, or an empty string if
+ * it doesn't exist.
+ */
+SourceTracker.prototype.getDescription = function(id) {
+ var entry = this.getSourceEntry(id);
+ if (entry)
+ return entry.getDescription();
+ return '';
+};
+
SourceTracker.prototype.onReceivedPassiveLogEntries = function(logEntries) {
// Due to an expected race condition, it is possible to receive actively
// captured log entries before the passively logged entries are received.

Powered by Google App Engine
This is Rietveld 408576698