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

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

Issue 2241903002: DevTools: Move CPU throttling out of experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « third_party/WebKit/Source/devtools/front_end/main/Main.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 873d39da12b9f5219f52440fb62f6e109e18cb23..44e070cafcfd8033b4a75e4102f37a7e2ba6ca5b 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -65,8 +65,7 @@ WebInspector.TimelinePanel = function()
this._frameModel = new WebInspector.TimelineFrameModel(event => WebInspector.TimelineUIUtils.eventStyle(event).category.name);
this._irModel = new WebInspector.TimelineIRModel();
- if (Runtime.experiments.isEnabled("cpuThrottling"))
- this._cpuThrottlingManager = new WebInspector.CPUThrottlingManager();
+ this._cpuThrottlingManager = new WebInspector.CPUThrottlingManager();
/** @type {!Array.<!WebInspector.TimelineModeView>} */
this._currentViews = [];
@@ -404,12 +403,10 @@ WebInspector.TimelinePanel.prototype = {
garbageCollectButton.addEventListener("click", this._garbageCollectButtonClicked, this);
this._panelToolbar.appendToolbarItem(garbageCollectButton);
- if (Runtime.experiments.isEnabled("cpuThrottling")) {
- this._panelToolbar.appendSeparator();
- this._cpuThrottlingCombobox = new WebInspector.ToolbarComboBox(this._onCPUThrottlingChanged.bind(this));
- this._panelToolbar.appendToolbarItem(this._cpuThrottlingCombobox);
- this._populateCPUThrottingCombobox();
- }
+ this._panelToolbar.appendSeparator();
+ this._cpuThrottlingCombobox = new WebInspector.ToolbarComboBox(this._onCPUThrottlingChanged.bind(this));
+ this._panelToolbar.appendToolbarItem(this._cpuThrottlingCombobox);
+ this._populateCPUThrottingCombobox();
},
_populateCPUThrottingCombobox: function()
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/main/Main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698