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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js

Issue 2915883002: DevTools: prepare to unify Network and CPU throttling UI (Closed)
Patch Set: gs 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/timeline/TimelinePanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
index faa7317bc5eeb86eb46b0103b074955738d6966b..5a5dd7b97560293f48485a073b7a1d943e977411 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -71,7 +71,7 @@ Timeline.TimelinePanel = class extends UI.Panel {
/** @type {?Timeline.PerformanceModel} */
this._pendingPerformanceModel = null;
- this._cpuThrottlingManager = new Components.CPUThrottlingManager();
+ this._cpuThrottlingManager = new MobileThrottling.CPUThrottlingManager();
this._viewModeSetting =
Common.settings.createSetting('timelineViewMode', Timeline.TimelinePanel.ViewMode.FlameChart);
@@ -260,7 +260,7 @@ Timeline.TimelinePanel = class extends UI.Panel {
SDK.multitargetNetworkManager.addEventListener(
SDK.MultitargetNetworkManager.Events.ConditionsChanged, this._updateShowSettingsToolbarButton, this);
this._cpuThrottlingManager.addEventListener(
- Components.CPUThrottlingManager.Events.RateChanged, this._updateShowSettingsToolbarButton, this);
+ MobileThrottling.CPUThrottlingManager.Events.RateChanged, this._updateShowSettingsToolbarButton, this);
this._disableCaptureJSProfileSetting.addChangeListener(this._updateShowSettingsToolbarButton, this);
this._captureLayersAndPicturesSetting.addChangeListener(this._updateShowSettingsToolbarButton, this);
@@ -324,7 +324,7 @@ Timeline.TimelinePanel = class extends UI.Panel {
_createNetworkConditionsSelect() {
var toolbarItem = new UI.ToolbarComboBox(null);
toolbarItem.setMaxWidth(140);
- NetworkConditions.NetworkConditionsSelector.decorateSelect(toolbarItem.selectElement());
+ MobileThrottling.NetworkConditionsSelector.decorateSelect(toolbarItem.selectElement());
return toolbarItem;
}

Powered by Google App Engine
This is Rietveld 408576698