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

Unified Diff: Source/devtools/front_end/common/Settings.js

Issue 341543003: DevTools: make responsive design a master switch for emulation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/devtools/front_end/common/Settings.js
diff --git a/Source/devtools/front_end/common/Settings.js b/Source/devtools/front_end/common/Settings.js
index de480afab08d2b28ae63bda3c585f00d26495ed7..b9e76e3966d65f6ec5f193c86213e611a4607eb1 100644
--- a/Source/devtools/front_end/common/Settings.js
+++ b/Source/devtools/front_end/common/Settings.js
@@ -90,9 +90,7 @@ WebInspector.Settings = function()
this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled", false);
this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", false);
this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", false);
-
- this.responsiveDesign = {};
- this.responsiveDesign.enabled = this.createSetting("responsiveDesign.enabled", false);
+ this.responsiveDesignEnabled = this.createSetting("responsiveDesignEnabled", true);
}
WebInspector.Settings.prototype = {
@@ -320,7 +318,8 @@ WebInspector.ExperimentsSettings = function(experimentsEnabled)
this.heapAllocationProfiler = this._createExperiment("allocationProfiler", "Heap allocation profiler");
this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics", "Heap snapshot statistics", true);
this.layersPanel = this._createExperiment("layersPanel", "Layers panel", true);
- this.responsiveDesign = this._createExperiment("responsiveDesign", "Responsive design", true);
+ this.networkConditions = this._createExperiment("networkConditions", "Network conditions", true);
+ this.responsiveDesign = this._createExperiment("responsiveDesign", "Responsive design");
this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Timeline flame chart");
this.timelineOnTraceEvents = this._createExperiment("timelineOnTraceEvents", "Timeline on trace events", true);
this.timelinePowerProfiler = this._createExperiment("timelinePowerProfiler", "Timeline power profiler");

Powered by Google App Engine
This is Rietveld 408576698