Chromium Code Reviews| 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 f53b6b2699f09dcd78f7ab1b773f3fe499d71900..1f5b23b752b981f6f160703427fe39e5e5ca212a 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js |
| @@ -187,8 +187,10 @@ 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._offlineCheckboxRefForTest = MobileThrottling.NetworkThrottlingSelector.createOfflineToolbarCheckbox(); |
|
dgozman
2017/06/28 22:33:09
drop RefForTest
chenwilliam
2017/06/29 20:34:02
Done.
|
| + this._panelToolbar.appendToolbarItem(this._offlineCheckboxRefForTest); |
| + this._throttlingRefForTest = this._createThrottlingConditionsSelect(); |
| + this._panelToolbar.appendToolbarItem(this._throttlingRefForTest); |
| this._panelToolbar.appendToolbarItem(new UI.ToolbarItem(this._progressBarContainer)); |
| } |
| @@ -196,10 +198,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.NetworkThrottlingSelector.decorateSelect(toolbarItem.selectElement()); |
| return toolbarItem; |
| } |