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

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

Issue 1312693005: Remove migration of obsolete value for "session.restore_on_startup". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url-to-restore-on-startup
Patch Set: Remove unused free function Created 5 years, 3 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // compatibility. 50 // compatibility.
51 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; 51 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
52 52
53 // A string pref whose values is one of the values defined by 53 // A string pref whose values is one of the values defined by
54 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and 54 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
55 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during 55 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
56 // shutdown. Used to determine the exit type the last time the profile was open. 56 // shutdown. Used to determine the exit type the last time the profile was open.
57 const char kSessionExitType[] = "profile.exit_type"; 57 const char kSessionExitType[] = "profile.exit_type";
58 58
59 // An integer pref. Holds one of several values: 59 // An integer pref. Holds one of several values:
60 // 0: (deprecated) open the homepage on startup. 60 // 0: unused, previously indicated to open the homepage on startup.
61 // 1: restore the last session. 61 // 1: restore the last session.
62 // 2: this was used to indicate a specific session should be restored. It is 62 // 2: this was used to indicate a specific session should be restored. It is
63 // no longer used, but saved to avoid conflict with old preferences. 63 // no longer used, but saved to avoid conflict with old preferences.
64 // 3: unused, previously indicated the user wants to restore a saved session. 64 // 3: unused, previously indicated the user wants to restore a saved session.
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
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
72 // higher.
73 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
74
75 // The URLs to restore on startup or when the home button is pressed. The URLs 69 // The URLs to restore on startup or when the home button is pressed. The URLs
76 // are only restored on startup if kRestoreOnStartup is 4. 70 // are only restored on startup if kRestoreOnStartup is 4.
77 const char kURLsToRestoreOnStartup[] = "session.startup_urls"; 71 const char kURLsToRestoreOnStartup[] = "session.startup_urls";
78 72
79 // Stores the email address associated with the google account of the custodian 73 // Stores the email address associated with the google account of the custodian
80 // of the supervised user, set when the supervised user is created. 74 // of the supervised user, set when the supervised user is created.
81 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email"; 75 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
82 76
83 // Stores the display name associated with the google account of the custodian 77 // Stores the display name associated with the google account of the custodian
84 // of the supervised user, updated (if possible) each time the supervised user 78 // of the supervised user, updated (if possible) each time the supervised user
(...skipping 2119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2204 "supervised_users.whitelists"; 2198 "supervised_users.whitelists";
2205 2199
2206 #if defined(ENABLE_EXTENSIONS) 2200 #if defined(ENABLE_EXTENSIONS)
2207 // Policy that indicates how to handle animated images. 2201 // Policy that indicates how to handle animated images.
2208 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; 2202 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2209 #endif 2203 #endif
2210 2204
2211 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; 2205 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
2212 2206
2213 } // namespace prefs 2207 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698