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

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 9da2792dd76f2c1e0b95453800f2ec0a90863226..52b2b4bc71d927518caf3141f5a729ca1735c2da 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 = {
@@ -321,7 +319,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");
« no previous file with comments | « Source/devtools/front_end/ResponsiveDesignView.js ('k') | Source/devtools/front_end/elements/OverridesView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698