summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/net_internals/source_row.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/net_internals/source_row.js')
-rw-r--r--chrome/browser/resources/net_internals/source_row.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/resources/net_internals/source_row.js b/chrome/browser/resources/net_internals/source_row.js
index 63ba5ca..3a63d69 100644
--- a/chrome/browser/resources/net_internals/source_row.js
+++ b/chrome/browser/resources/net_internals/source_row.js
@@ -190,6 +190,11 @@ var SourceRow = (function() {
if (this.description_.toLowerCase().indexOf(filter.text) != -1)
return true;
+ // Allow specifying source types by name.
+ var sourceType = this.sourceEntry_.getSourceTypeString();
+ if (sourceType.toLowerCase().indexOf(filter.text) != -1)
+ return true;
+
var entryText = JSON.stringify(this.sourceEntry_.getLogEntries());
return entryText.toLowerCase().indexOf(filter.text) != -1;
},