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

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

Issue 1203703002: DevTools: nuke LocalStorage settings once again when upgrading from settings v12 to v13 (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 fb7c3756ae82906495e39e4a39e54d4b32e8d74a..c0acc88a9a3dd4ec6fe51a7e105d18fcf65382bf 100644
--- a/Source/devtools/front_end/common/Settings.js
+++ b/Source/devtools/front_end/common/Settings.js
@@ -565,6 +565,17 @@ WebInspector.VersionController.prototype = {
_updateVersionFrom11To12: function()
{
+ this._migrateSettingsFromLocalStorage();
pfeldman 2015/06/23 13:58:02 We can't modify things in the past, assume users a
alph 2015/06/23 14:11:36 you probably took it offline, but could you please
+ },
+
+ _updateVersionFrom12To13: function()
+ {
+ this._migrateSettingsFromLocalStorage();
pfeldman 2015/06/23 13:58:03 You should not migrate more than once. Should we j
+ WebInspector.settings.createSetting("timelineOverviewMode", "").remove();
+ },
+
+ _migrateSettingsFromLocalStorage: function()
+ {
// This step migrates all the settings except for the ones below into the browser profile.
var localSettings = [ "advancedSearchConfig", "breakpoints", "consoleHistory", "domBreakpoints", "eventListenerBreakpoints",
"fileSystemMapping", "lastSelectedSourcesSidebarPaneTab", "previouslyViewedFiles",
@@ -581,11 +592,6 @@ WebInspector.VersionController.prototype = {
}
},
- _updateVersionFrom12To13: function()
- {
- WebInspector.settings.createSetting("timelineOverviewMode", "").remove();
- },
-
/**
* @param {!WebInspector.Setting} breakpointsSetting
* @param {number} maxBreakpointsCount
« 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