OLD | NEW |
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 Loading... |
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: (or empty) don't do anything special on startup. | 46 // 0: (deprecated) open the homepage 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 |
52 const char kRestoreOnStartup[] = "session.restore_on_startup"; | 53 const char kRestoreOnStartup[] = "session.restore_on_startup"; |
53 | 54 |
54 // The URLs to restore on startup or when the home button is pressed. The URLs | 55 // The URLs to restore on startup or when the home button is pressed. The URLs |
55 // are only restored on startup if kRestoreOnStartup is 4. | 56 // are only restored on startup if kRestoreOnStartup is 4. |
56 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; | 57 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; |
57 | 58 |
| 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 |
58 // The application locale. | 65 // The application locale. |
59 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state | 66 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state |
60 // and user's profile. Global property determines locale of login screen, | 67 // and user's profile. Global property determines locale of login screen, |
61 // while user's profile determines his personal locale preference. | 68 // while user's profile determines his personal locale preference. |
62 const char kApplicationLocale[] = "intl.app_locale"; | 69 const char kApplicationLocale[] = "intl.app_locale"; |
63 #if defined(OS_CHROMEOS) | 70 #if defined(OS_CHROMEOS) |
64 // Locale preference of device' owner. ChromeOS device appears in this locale | 71 // Locale preference of device' owner. ChromeOS device appears in this locale |
65 // after startup/wakeup/signout. | 72 // after startup/wakeup/signout. |
66 const char kOwnerLocale[] = "intl.owner_locale"; | 73 const char kOwnerLocale[] = "intl.owner_locale"; |
67 // Locale accepted by user. Non-syncable. | 74 // Locale accepted by user. Non-syncable. |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1835 const char kRailBreakProportion[] = | 1842 const char kRailBreakProportion[] = |
1836 "gesture.rail_break_proportion"; | 1843 "gesture.rail_break_proportion"; |
1837 const char kRailStartProportion[] = | 1844 const char kRailStartProportion[] = |
1838 "gesture.rail_start_proportion"; | 1845 "gesture.rail_start_proportion"; |
1839 #endif | 1846 #endif |
1840 | 1847 |
1841 // Indicates whether the browser is in managed mode. | 1848 // Indicates whether the browser is in managed mode. |
1842 const char kInManagedMode[] = "managed_mode"; | 1849 const char kInManagedMode[] = "managed_mode"; |
1843 | 1850 |
1844 } // namespace prefs | 1851 } // namespace prefs |
OLD | NEW |