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

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

Issue 2602473003: Run tools/clang-format-js on chrome/browser/resources/net_internals (Closed)
Patch Set: drop dep Created 3 years, 12 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_filter_parser.js
diff --git a/chrome/browser/resources/net_internals/source_filter_parser.js b/chrome/browser/resources/net_internals/source_filter_parser.js
index 607161aace3f3a26c67d2795bc31e69284b78c26..723ccac76949101f1c2d2880bb1876c50231443b 100644
--- a/chrome/browser/resources/net_internals/source_filter_parser.js
+++ b/chrome/browser/resources/net_internals/source_filter_parser.js
@@ -41,13 +41,13 @@ var SourceFilterParser = (function() {
if (filter) {
if (negated) {
filter = (function(func, sourceEntry) {
- return !func(sourceEntry);
- }).bind(null, filter);
+ return !func(sourceEntry);
+ }).bind(null, filter);
}
filterFunctions.push(filter);
continue;
}
- textFilters.push({ text: filterElement, negated: negated });
+ textFilters.push({text: filterElement, negated: negated});
}
// Create a single filter for all text filters, so they can share a
@@ -73,7 +73,7 @@ var SourceFilterParser = (function() {
var match = /^sort:(.*)$/.exec(filterElement);
if (!match)
return null;
- return { method: match[1], backwards: backwards };
+ return {method: match[1], backwards: backwards};
}
/**
@@ -85,10 +85,14 @@ var SourceFilterParser = (function() {
if (!match)
return null;
if (match[1] == 'active') {
- return function(sourceEntry) { return !sourceEntry.isInactive(); };
+ return function(sourceEntry) {
+ return !sourceEntry.isInactive();
+ };
}
if (match[1] == 'error') {
- return function(sourceEntry) { return sourceEntry.isError(); };
+ return function(sourceEntry) {
+ return sourceEntry.isError();
+ };
}
return null;
}
@@ -149,8 +153,7 @@ var SourceFilterParser = (function() {
while (position < filterText.length) {
var nextCharacter = filterText[position];
++position;
- if (nextCharacter == '\\' &&
- position < filterText.length) {
+ if (nextCharacter == '\\' && position < filterText.length) {
// If there's a backslash, skip the backslash and add the next
// character to the element.
filterElement += filterText[position];
« no previous file with comments | « chrome/browser/resources/net_internals/source_entry.js ('k') | chrome/browser/resources/net_internals/spdy_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698