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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js

Issue 2938503002: DevTools: unify Network & CPU throttling (Closed)
Patch Set: fmt Created 3 years, 6 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/network/NetworkPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js
index aed400781ebf2e0ec0e8eb2bd18f909dc6a89990..fb7cef14bec6472d2c5db537a0f1d726acf61c99 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js
@@ -185,8 +185,8 @@ Network.NetworkPanel = class extends UI.Panel {
this._panelToolbar.appendToolbarItem(this._disableCacheCheckbox);
this._panelToolbar.appendSeparator();
- this._panelToolbar.appendToolbarItem(MobileThrottling.NetworkConditionsSelector.createOfflineToolbarCheckbox());
- this._panelToolbar.appendToolbarItem(this._createNetworkConditionsSelect());
+ this._panelToolbar.appendToolbarItem(MobileThrottling.ThrottlingSelector.createOfflineToolbarCheckbox());
+ this._panelToolbar.appendToolbarItem(this._createThrottlingConditionsSelect());
this._panelToolbar.appendToolbarItem(new UI.ToolbarItem(this._progressBarContainer));
}
@@ -194,10 +194,10 @@ Network.NetworkPanel = class extends UI.Panel {
/**
* @return {!UI.ToolbarComboBox}
*/
- _createNetworkConditionsSelect() {
+ _createThrottlingConditionsSelect() {
var toolbarItem = new UI.ToolbarComboBox(null);
- toolbarItem.setMaxWidth(140);
- MobileThrottling.NetworkConditionsSelector.decorateSelect(toolbarItem.selectElement());
+ toolbarItem.setMaxWidth(160);
+ MobileThrottling.ThrottlingSelector.decorateSelect(toolbarItem.selectElement());
return toolbarItem;
}

Powered by Google App Engine
This is Rietveld 408576698