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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2842843003: DevTools: Display product information in ConsoleContextSelector (Closed)
Patch Set: f Created 3 years, 7 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: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
index 4b64e341956d1d2e0fd76b6106afe7fadfd71212..73c6dd74adfdb4e538caa14244fc508cd61f996e 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
@@ -55,9 +55,7 @@ Console.ConsoleView = class extends UI.VBox {
this._regexMatchRanges = [];
this._filter = new Console.ConsoleViewFilter(this._updateMessageList.bind(this));
- this._executionContextComboBox = new UI.ToolbarComboBox(null, 'console-context');
- this._executionContextComboBox.setMaxWidth(80);
- this._consoleContextSelector = new Console.ConsoleContextSelector(this._executionContextComboBox.selectElement());
+ this._consoleContextSelector = new Console.ConsoleContextSelector();
this._filterStatusText = new UI.ToolbarText();
this._filterStatusText.element.classList.add('dimmed');
@@ -70,7 +68,7 @@ Console.ConsoleView = class extends UI.VBox {
toolbar.appendToolbarItem(UI.Toolbar.createActionButton(
/** @type {!UI.Action }*/ (UI.actionRegistry.action('console.clear'))));
toolbar.appendSeparator();
- toolbar.appendToolbarItem(this._executionContextComboBox);
+ toolbar.appendToolbarItem(this._consoleContextSelector.toolbarItem());
toolbar.appendSeparator();
toolbar.appendToolbarItem(this._filter._textFilterUI);
toolbar.appendToolbarItem(this._filter._levelComboBox);

Powered by Google App Engine
This is Rietveld 408576698