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

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: 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // compatibility. 59 // compatibility.
60 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; 60 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
61 61
62 // A string pref whose values is one of the values defined by 62 // A string pref whose values is one of the values defined by
63 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and 63 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
64 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during 64 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
65 // shutdown. Used to determine the exit type the last time the profile was open. 65 // shutdown. Used to determine the exit type the last time the profile was open.
66 const char kSessionExitType[] = "profile.exit_type"; 66 const char kSessionExitType[] = "profile.exit_type";
67 67
68 // An integer pref. Holds one of several values: 68 // An integer pref. Holds one of several values:
69 // 0: (deprecated) open the homepage on startup. 69 // 0: (deprecated) open the homepage on startup.
bartfab (slow) 2015/12/08 10:42:05 Nit: I think your earlier string ("unused, previou
70 // 1: restore the last session. 70 // 1: restore the last session.
71 // 2: this was used to indicate a specific session should be restored. It is 71 // 2: this was used to indicate a specific session should be restored. It is
72 // no longer used, but saved to avoid conflict with old preferences. 72 // no longer used, but saved to avoid conflict with old preferences.
73 // 3: unused, previously indicated the user wants to restore a saved session. 73 // 3: unused, previously indicated the user wants to restore a saved session.
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
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
81 // higher.
82 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
83
84 // The URLs to restore on startup or when the home button is pressed. The URLs 78 // The URLs to restore on startup or when the home button is pressed. The URLs
85 // are only restored on startup if kRestoreOnStartup is 4. 79 // are only restored on startup if kRestoreOnStartup is 4.
86 const char kURLsToRestoreOnStartup[] = "session.startup_urls"; 80 const char kURLsToRestoreOnStartup[] = "session.startup_urls";
87 81
88 // Stores the email address associated with the google account of the custodian 82 // Stores the email address associated with the google account of the custodian
89 // of the supervised user, set when the supervised user is created. 83 // of the supervised user, set when the supervised user is created.
90 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email"; 84 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
91 85
92 // Stores the display name associated with the google account of the custodian 86 // Stores the display name associated with the google account of the custodian
93 // of the supervised user, updated (if possible) each time the supervised user 87 // of the supervised user, updated (if possible) each time the supervised user
(...skipping 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 // Policy that indicates how to handle animated images. 2156 // Policy that indicates how to handle animated images.
2163 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; 2157 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2164 #endif 2158 #endif
2165 2159
2166 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; 2160 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
2167 2161
2168 const char kAllowDinosaurEasterEgg[] = 2162 const char kAllowDinosaurEasterEgg[] =
2169 "allow_dinosaur_easter_egg"; 2163 "allow_dinosaur_easter_egg";
2170 2164
2171 } // namespace prefs 2165 } // namespace prefs
OLDNEW
« chrome/browser/sessions/restore_on_startup_policy_handler.cc ('K') | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698