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

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: Created 5 years, 4 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 unified diff | Download patch
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/pref_font_webkit_names.h" 8 #include "chrome/common/pref_font_webkit_names.h"
9 9
10 namespace prefs { 10 namespace prefs {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // 4: restore the URLs defined in kURLsToRestoreOnStartup. 65 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
66 // 5: open the New Tab Page on startup. 66 // 5: open the New Tab Page on startup.
67 const char kRestoreOnStartup[] = "session.restore_on_startup"; 67 const char kRestoreOnStartup[] = "session.restore_on_startup";
68 68
69 // A preference to keep track of whether we have already checked whether we 69 // A preference to keep track of whether we have already checked whether we
70 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. 70 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
71 // We only need to do this check once, on upgrade from m18 or lower to m19 or 71 // We only need to do this check once, on upgrade from m18 or lower to m19 or
72 // higher. 72 // higher.
73 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; 73 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
74 74
75 // Serialized migration time of kURLsToRestoreOnStartup (see
76 // base::Time::ToInternalValue for details on serialization format).
77 const char kRestoreStartupURLsMigrationTime[] =
78 "session.startup_urls_migration_time";
79
80 // The URLs to restore on startup or when the home button is pressed. The URLs 75 // The URLs to restore on startup or when the home button is pressed. The URLs
81 // are only restored on startup if kRestoreOnStartup is 4. 76 // are only restored on startup if kRestoreOnStartup is 4.
82 const char kURLsToRestoreOnStartup[] = "session.startup_urls"; 77 const char kURLsToRestoreOnStartup[] = "session.startup_urls";
83 78
84 // Old startup url pref name for kURLsToRestoreOnStartup.
85 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
86
87 // Stores the email address associated with the google account of the custodian 79 // Stores the email address associated with the google account of the custodian
88 // of the supervised user, set when the supervised user is created. 80 // of the supervised user, set when the supervised user is created.
89 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email"; 81 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
90 82
91 // Stores the display name associated with the google account of the custodian 83 // Stores the display name associated with the google account of the custodian
92 // of the supervised user, updated (if possible) each time the supervised user 84 // of the supervised user, updated (if possible) each time the supervised user
93 // starts a session. 85 // starts a session.
94 const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name"; 86 const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name";
95 87
96 // Stores the URL of the profile image associated with the google account of the 88 // Stores the URL of the profile image associated with the google account of the
(...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2217 "supervised_users.whitelists"; 2209 "supervised_users.whitelists";
2218 2210
2219 #if defined(ENABLE_EXTENSIONS) 2211 #if defined(ENABLE_EXTENSIONS)
2220 // Policy that indicates how to handle animated images. 2212 // Policy that indicates how to handle animated images.
2221 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; 2213 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2222 #endif 2214 #endif
2223 2215
2224 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; 2216 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
2225 2217
2226 } // namespace prefs 2218 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698