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

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

Issue 10173007: Revert 133740 - Fix homepage migration for users who never changed their settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/functional/protector.py » ('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 8
9 namespace prefs { 9 namespace prefs {
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // Does this user have a Google+ Profile? 37 // Does this user have a Google+ Profile?
38 const char kIsGooglePlusUser[] = "is_google_plus_user"; 38 const char kIsGooglePlusUser[] = "is_google_plus_user";
39 39
40 // Used to determine if the last session exited cleanly. Set to false when 40 // Used to determine if the last session exited cleanly. Set to false when
41 // first opened, and to true when closing. On startup if the value is false, 41 // first opened, and to true when closing. On startup if the value is false,
42 // it means the profile didn't exit cleanly. 42 // it means the profile didn't exit cleanly.
43 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; 43 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
44 44
45 // An integer pref. Holds one of several values: 45 // An integer pref. Holds one of several values:
46 // 0: (deprecated) open the homepage on startup 46 // 0: (or empty) don't do anything special on startup.
47 // 1: restore the last session. 47 // 1: restore the last session.
48 // 2: this was used to indicate a specific session should be restored. It is 48 // 2: this was used to indicate a specific session should be restored. It is
49 // no longer used, but saved to avoid conflict with old preferences. 49 // no longer used, but saved to avoid conflict with old preferences.
50 // 3: unused, previously indicated the user wants to restore a saved session. 50 // 3: unused, previously indicated the user wants to restore a saved session.
51 // 4: restore the URLs defined in kURLsToRestoreOnStartup. 51 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
52 // 5: open the New Tab Page on startup (this is the default value).
53 const char kRestoreOnStartup[] = "session.restore_on_startup"; 52 const char kRestoreOnStartup[] = "session.restore_on_startup";
54 53
55 // The URLs to restore on startup or when the home button is pressed. The URLs 54 // The URLs to restore on startup or when the home button is pressed. The URLs
56 // are only restored on startup if kRestoreOnStartup is 4. 55 // are only restored on startup if kRestoreOnStartup is 4.
57 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; 56 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup";
58 57
59 // A preference to keep track of whether we have already checked whether we
60 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
61 // We only need to do this check once, on upgrade from m18 or lower to m19 or
62 // higher.
63 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
64
65 // The application locale. 58 // The application locale.
66 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state 59 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
67 // and user's profile. Global property determines locale of login screen, 60 // and user's profile. Global property determines locale of login screen,
68 // while user's profile determines his personal locale preference. 61 // while user's profile determines his personal locale preference.
69 const char kApplicationLocale[] = "intl.app_locale"; 62 const char kApplicationLocale[] = "intl.app_locale";
70 #if defined(OS_CHROMEOS) 63 #if defined(OS_CHROMEOS)
71 // Locale preference of device' owner. ChromeOS device appears in this locale 64 // Locale preference of device' owner. ChromeOS device appears in this locale
72 // after startup/wakeup/signout. 65 // after startup/wakeup/signout.
73 const char kOwnerLocale[] = "intl.owner_locale"; 66 const char kOwnerLocale[] = "intl.owner_locale";
74 // Locale accepted by user. Non-syncable. 67 // Locale accepted by user. Non-syncable.
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 const char kRailBreakProportion[] = 1839 const char kRailBreakProportion[] =
1847 "gesture.rail_break_proportion"; 1840 "gesture.rail_break_proportion";
1848 const char kRailStartProportion[] = 1841 const char kRailStartProportion[] =
1849 "gesture.rail_start_proportion"; 1842 "gesture.rail_start_proportion";
1850 #endif 1843 #endif
1851 1844
1852 // Indicates whether the browser is in managed mode. 1845 // Indicates whether the browser is in managed mode.
1853 const char kInManagedMode[] = "managed_mode"; 1846 const char kInManagedMode[] = "managed_mode";
1854 1847
1855 } // namespace prefs 1848 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/functional/protector.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698