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

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

Issue 1218453002: [DevTools] Clear networkConditions setting for all users because of behavior change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c0acc88a9a3dd4ec6fe51a7e105d18fcf65382bf..2a5c78348b492c64e30428a5a7f4eee581c0e6fc 100644
--- a/Source/devtools/front_end/common/Settings.js
+++ b/Source/devtools/front_end/common/Settings.js
@@ -333,7 +333,7 @@ WebInspector.VersionController = function()
}
WebInspector.VersionController._currentVersionName = "inspectorVersion";
-WebInspector.VersionController.currentVersion = 13;
+WebInspector.VersionController.currentVersion = 14;
WebInspector.VersionController.prototype = {
updateVersion: function()
@@ -574,6 +574,12 @@ WebInspector.VersionController.prototype = {
WebInspector.settings.createSetting("timelineOverviewMode", "").remove();
},
+ _updateVersionFrom13To14: function()
+ {
+ var defaultValue = { "throughput": -1, "latency": 0 };
+ WebInspector.settings.createSetting("networkConditions", defaultValue).set(defaultValue);
+ },
+
_migrateSettingsFromLocalStorage: function()
{
// This step migrates all the settings except for the ones below into the browser profile.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698