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

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

Issue 2651843003: DevTools: update console timestamp style (Closed)
Patch Set: nochange Created 3 years, 11 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: third_party/WebKit/Source/devtools/front_end/common/Settings.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/Settings.js b/third_party/WebKit/Source/devtools/front_end/common/Settings.js
index fc709b7f3bf6bc759509c78fda5859d2fda656cf..6c822c45fb3ecc7bdeb92908c395959d5f15d547 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/Settings.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/Settings.js
@@ -709,6 +709,15 @@ Common.VersionController = class {
breakpointsSetting.set(breakpoints);
}
+ _updateVersionFrom22To23() {
pfeldman 2017/02/07 18:38:14 Lets not switch to the short/long, this adds anoth
+ var oldSetting = Common.settings.createSetting('consoleTimestampsEnabled', false);
+ var newSetting = Common.settings.createSetting('consoleTimestampFormat', 'none');
+ var oldValue = oldSetting.get();
+ if (oldValue)
+ newSetting.set('short');
+ oldSetting.remove();
+ }
+
_migrateSettingsFromLocalStorage() {
// This step migrates all the settings except for the ones below into the browser profile.
var localSettings = new Set([
@@ -741,7 +750,7 @@ Common.VersionController = class {
};
Common.VersionController._currentVersionName = 'inspectorVersion';
-Common.VersionController.currentVersion = 22;
+Common.VersionController.currentVersion = 23;
/**
* @type {!Common.Settings}

Powered by Google App Engine
This is Rietveld 408576698