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

Side by Side Diff: chrome/common/pref_names.cc

Issue 1302303002: Remove year+ old migration support of "session.urls_to_restore_on_startup". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable_unittest
Patch Set: Address comments Created 5 years 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 unified diff | Download patch
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/installer/util/master_preferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/common/features.h" 8 #include "chrome/common/features.h"
9 #include "chrome/common/pref_font_webkit_names.h" 9 #include "chrome/common/pref_font_webkit_names.h"
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // 4: restore the URLs defined in kURLsToRestoreOnStartup. 74 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
75 // 5: open the New Tab Page on startup. 75 // 5: open the New Tab Page on startup.
76 const char kRestoreOnStartup[] = "session.restore_on_startup"; 76 const char kRestoreOnStartup[] = "session.restore_on_startup";
77 77
78 // A preference to keep track of whether we have already checked whether we 78 // A preference to keep track of whether we have already checked whether we
79 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. 79 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
80 // We only need to do this check once, on upgrade from m18 or lower to m19 or 80 // We only need to do this check once, on upgrade from m18 or lower to m19 or
81 // higher. 81 // higher.
82 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; 82 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
83 83
84 // Serialized migration time of kURLsToRestoreOnStartup (see
85 // base::Time::ToInternalValue for details on serialization format).
86 const char kRestoreStartupURLsMigrationTime[] =
87 "session.startup_urls_migration_time";
88
89 // The URLs to restore on startup or when the home button is pressed. The URLs 84 // The URLs to restore on startup or when the home button is pressed. The URLs
90 // are only restored on startup if kRestoreOnStartup is 4. 85 // are only restored on startup if kRestoreOnStartup is 4.
91 const char kURLsToRestoreOnStartup[] = "session.startup_urls"; 86 const char kURLsToRestoreOnStartup[] = "session.startup_urls";
92 87
93 // Old startup url pref name for kURLsToRestoreOnStartup.
94 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
95
96 // Stores the email address associated with the google account of the custodian 88 // Stores the email address associated with the google account of the custodian
97 // of the supervised user, set when the supervised user is created. 89 // of the supervised user, set when the supervised user is created.
98 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email"; 90 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
99 91
100 // Stores the display name associated with the google account of the custodian 92 // Stores the display name associated with the google account of the custodian
101 // of the supervised user, updated (if possible) each time the supervised user 93 // of the supervised user, updated (if possible) each time the supervised user
102 // starts a session. 94 // starts a session.
103 const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name"; 95 const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name";
104 96
105 // Stores the URL of the profile image associated with the google account of the 97 // Stores the URL of the profile image associated with the google account of the
(...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 // Policy that indicates how to handle animated images. 2162 // Policy that indicates how to handle animated images.
2171 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; 2163 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2172 #endif 2164 #endif
2173 2165
2174 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; 2166 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
2175 2167
2176 const char kAllowDinosaurEasterEgg[] = 2168 const char kAllowDinosaurEasterEgg[] =
2177 "allow_dinosaur_easter_egg"; 2169 "allow_dinosaur_easter_egg";
2178 2170
2179 } // namespace prefs 2171 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/installer/util/master_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698