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

Unified Diff: Source/devtools/front_end/ConsoleView.js

Issue 212933011: Persist network panel resource type filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | Source/devtools/front_end/FilterBar.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ConsoleView.js
diff --git a/Source/devtools/front_end/ConsoleView.js b/Source/devtools/front_end/ConsoleView.js
index bcfc64da5f850d1779798f1ac18171ec5744eec7..3e56e0f2ef5ae7d18f482672021e88e01ff588f7 100644
--- a/Source/devtools/front_end/ConsoleView.js
+++ b/Source/devtools/front_end/ConsoleView.js
@@ -888,13 +888,14 @@ WebInspector.ConsoleViewFilter.prototype = {
this._textFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._textFilterChanged, this);
filterBar.addFilter(this._textFilterUI);
- this._levelFilterUI = new WebInspector.NamedBitSetFilterUI();
- this._levelFilterUI.addBit("error", WebInspector.UIString("Errors"));
- this._levelFilterUI.addBit("warning", WebInspector.UIString("Warnings"));
- this._levelFilterUI.addBit("info", WebInspector.UIString("Info"));
- this._levelFilterUI.addBit("log", WebInspector.UIString("Logs"));
- this._levelFilterUI.addBit("debug", WebInspector.UIString("Debug"));
- this._levelFilterUI.bindSetting(WebInspector.settings.messageLevelFilters);
+ var levels = [
+ {name: "error", label: WebInspector.UIString("Errors")},
+ {name: "warning", label: WebInspector.UIString("Warnings")},
+ {name: "info", label: WebInspector.UIString("Info")},
+ {name: "log", label: WebInspector.UIString("Logs")},
+ {name: "debug", label: WebInspector.UIString("Debug")}
+ ];
+ this._levelFilterUI = new WebInspector.NamedBitSetFilterUI(levels, WebInspector.settings.messageLevelFilters);
this._levelFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._filterChanged, this);
filterBar.addFilter(this._levelFilterUI);
},
« no previous file with comments | « no previous file | Source/devtools/front_end/FilterBar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698