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

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: ??? 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
« no previous file with comments | « chrome/browser/resources/net_internals/source_entry.js ('k') | net/base/net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/source_tracker.js
===================================================================
--- chrome/browser/resources/net_internals/source_tracker.js (revision 106059)
+++ chrome/browser/resources/net_internals/source_tracker.js (working copy)
@@ -75,6 +75,17 @@
},
/**
+ * Returns the description of the specified SourceEntry, or an empty string
+ * if it doesn't exist.
+ */
+ getDescription: function(id) {
+ var entry = this.getSourceEntry(id);
+ if (entry)
+ return entry.getDescription();
+ return '';
+ },
+
+ /**
* Returns the specified SourceEntry.
*/
getSourceEntry: function(id) {
« no previous file with comments | « chrome/browser/resources/net_internals/source_entry.js ('k') | net/base/net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698