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 #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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Serialized migration time of kURLsToRestoreOnStartup (see | 95 // Serialized migration time of kURLsToRestoreOnStartup (see |
96 // base::Time::ToInternalValue for details on serialization format). | 96 // base::Time::ToInternalValue for details on serialization format). |
97 const char kRestoreStartupURLsMigrationTime[] = | 97 const char kRestoreStartupURLsMigrationTime[] = |
98 "session.startup_urls_migration_time"; | 98 "session.startup_urls_migration_time"; |
99 | 99 |
100 // If set to true profiles are created in ephemeral mode and do not store their | 100 // If set to true profiles are created in ephemeral mode and do not store their |
101 // data in the profile folder on disk but only in memory. | 101 // data in the profile folder on disk but only in memory. |
102 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; | 102 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; |
103 | 103 |
104 // Set to true when enhanced bookmarks experiment is enabled via Chrome sync. | |
105 const char kEnhancedBookmarksExperimentEnabled[] = "enhanced_bookmarks_enabled"; | |
106 | |
107 // Enhanced bookmarks extension id passed via Chrome sync. | |
108 const char kEnhancedBookmarksExtensionId[] = "enhanced_bookmarks_extension_id"; | |
109 | |
110 // The application locale. | 104 // The application locale. |
111 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state | 105 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state |
112 // and user's profile. Global property determines locale of login screen, | 106 // and user's profile. Global property determines locale of login screen, |
113 // while user's profile determines his personal locale preference. | 107 // while user's profile determines his personal locale preference. |
114 const char kApplicationLocale[] = "intl.app_locale"; | 108 const char kApplicationLocale[] = "intl.app_locale"; |
115 #if defined(OS_CHROMEOS) | 109 #if defined(OS_CHROMEOS) |
116 // Locale preference of device' owner. ChromeOS device appears in this locale | 110 // Locale preference of device' owner. ChromeOS device appears in this locale |
117 // after startup/wakeup/signout. | 111 // after startup/wakeup/signout. |
118 const char kOwnerLocale[] = "intl.owner_locale"; | 112 const char kOwnerLocale[] = "intl.owner_locale"; |
119 // Locale accepted by user. Non-syncable. | 113 // Locale accepted by user. Non-syncable. |
(...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 | 1800 |
1807 #if defined(OS_ANDROID) || defined(OS_IOS) | 1801 #if defined(OS_ANDROID) || defined(OS_IOS) |
1808 // A boolean specifying whether a SPDY proxy is enabled. | 1802 // A boolean specifying whether a SPDY proxy is enabled. |
1809 const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled"; | 1803 const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled"; |
1810 const char kSpdyProxyAuthWasEnabledBefore[] = "spdy_proxy.was_enabled_before"; | 1804 const char kSpdyProxyAuthWasEnabledBefore[] = "spdy_proxy.was_enabled_before"; |
1811 #endif // defined(OS_ANDROID) || defined(OS_IOS) | 1805 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
1812 | 1806 |
1813 // Boolean which stores if the user is allowed to signin to chrome. | 1807 // Boolean which stores if the user is allowed to signin to chrome. |
1814 const char kSigninAllowed[] = "signin.allowed"; | 1808 const char kSigninAllowed[] = "signin.allowed"; |
1815 | 1809 |
1816 // 64-bit integer serialization of the base::Time when the last sync occurred. | |
1817 const char kSyncLastSyncedTime[] = "sync.last_synced_time"; | |
1818 | |
1819 // Boolean specifying whether the user finished setting up sync. | |
1820 const char kSyncHasSetupCompleted[] = "sync.has_setup_completed"; | |
1821 | |
1822 // Boolean specifying whether sync has an auth error. | |
1823 const char kSyncHasAuthError[] = "sync.has_auth_error"; | |
1824 | |
1825 // Boolean specifying whether to automatically sync all data types (including | |
1826 // future ones, as they're added). If this is true, the following preferences | |
1827 // (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored. | |
1828 const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced"; | |
1829 | |
1830 // Booleans specifying whether the user has selected to sync the following | |
1831 // datatypes. | |
1832 const char kSyncAppList[] = "sync.app_list"; | |
1833 const char kSyncAppNotifications[] = "sync.app_notifications"; | |
1834 const char kSyncAppSettings[] = "sync.app_settings"; | |
1835 const char kSyncApps[] = "sync.apps"; | |
1836 const char kSyncAutofillProfile[] = "sync.autofill_profile"; | |
1837 const char kSyncAutofill[] = "sync.autofill"; | |
1838 const char kSyncBookmarks[] = "sync.bookmarks"; | |
1839 const char kSyncDictionary[] = "sync.dictionary"; | |
1840 const char kSyncExtensionSettings[] = "sync.extension_settings"; | |
1841 const char kSyncExtensions[] = "sync.extensions"; | |
1842 const char kSyncFaviconImages[] = "sync.favicon_images"; | |
1843 const char kSyncFaviconTracking[] = "sync.favicon_tracking"; | |
1844 const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives"; | |
1845 const char kSyncManagedUserSettings[] = "sync.managed_user_settings"; | |
1846 const char kSyncManagedUserSharedSettings[] = | |
1847 "sync.managed_user_shared_settings"; | |
1848 const char kSyncManagedUsers[] = "sync.managed_users"; | |
1849 const char kSyncArticles[] = "sync.articles"; | |
1850 const char kSyncPasswords[] = "sync.passwords"; | |
1851 const char kSyncPreferences[] = "sync.preferences"; | |
1852 const char kSyncPriorityPreferences[] = "sync.priority_preferences"; | |
1853 const char kSyncSearchEngines[] = "sync.search_engines"; | |
1854 const char kSyncSessions[] = "sync.sessions"; | |
1855 const char kSyncSyncedNotificationAppInfo[] = | |
1856 "sync.synced_notification_app_info"; | |
1857 const char kSyncSyncedNotifications[] = "sync.synced_notifications"; | |
1858 const char kSyncTabs[] = "sync.tabs"; | |
1859 const char kSyncThemes[] = "sync.themes"; | |
1860 const char kSyncTypedUrls[] = "sync.typed_urls"; | |
1861 | |
1862 // Boolean used by enterprise configuration management in order to lock down | |
1863 // sync. | |
1864 const char kSyncManaged[] = "sync.managed"; | |
1865 | |
1866 // Boolean to prevent sync from automatically starting up. This is | |
1867 // used when sync is disabled by the user via the privacy dashboard. | |
1868 const char kSyncSuppressStart[] = "sync.suppress_start"; | |
1869 | |
1870 // List of the currently acknowledged set of sync types, used to figure out | |
1871 // if a new sync type has rolled out so we can notify the user. | |
1872 const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types"; | |
1873 | |
1874 // The GUID session sync will use to identify this client, even across sync | |
1875 // disable/enable events. | |
1876 const char kSyncSessionsGUID[] = "sync.session_sync_guid"; | |
1877 | |
1878 // An ID to uniquely identify this client to the invalidator service. | 1810 // An ID to uniquely identify this client to the invalidator service. |
1879 const char kInvalidatorClientId[] = "invalidator.client_id"; | 1811 const char kInvalidatorClientId[] = "invalidator.client_id"; |
1880 | 1812 |
1881 // Opaque state from the invalidation subsystem that is persisted via prefs. | 1813 // Opaque state from the invalidation subsystem that is persisted via prefs. |
1882 // The value is base 64 encoded. | 1814 // The value is base 64 encoded. |
1883 const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state"; | 1815 const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state"; |
1884 | 1816 |
1885 // List of received invalidations that have not been acted on by any clients | 1817 // List of received invalidations that have not been acted on by any clients |
1886 // yet. Used to keep invalidation clients in sync in case of a restart. | 1818 // yet. Used to keep invalidation clients in sync in case of a restart. |
1887 const char kInvalidatorSavedInvalidations[] = "invalidator.saved_invalidations"; | 1819 const char kInvalidatorSavedInvalidations[] = "invalidator.saved_invalidations"; |
1888 | 1820 |
1889 // A string that can be used to restore sync encryption infrastructure on | |
1890 // startup so that the user doesn't need to provide credentials on each start. | |
1891 const char kSyncEncryptionBootstrapToken[] = | |
1892 "sync.encryption_bootstrap_token"; | |
1893 | |
1894 // Same as kSyncEncryptionBootstrapToken, but derived from the keystore key, | |
1895 // so we don't have to do a GetKey command at restart. | |
1896 const char kSyncKeystoreEncryptionBootstrapToken[] = | |
1897 "sync.keystore_encryption_bootstrap_token"; | |
1898 | |
1899 // Boolean tracking whether the user chose to specify a secondary encryption | |
1900 // passphrase. | |
1901 const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase"; | |
1902 | |
1903 // String the identifies the last user that logged into sync and other | 1821 // String the identifies the last user that logged into sync and other |
1904 // google services. As opposed to kGoogleServicesUsername, this value is not | 1822 // google services. As opposed to kGoogleServicesUsername, this value is not |
1905 // cleared on signout, but while the user is signed in the two values will | 1823 // cleared on signout, but while the user is signed in the two values will |
1906 // be the same. | 1824 // be the same. |
1907 const char kGoogleServicesLastUsername[] = "google.services.last_username"; | 1825 const char kGoogleServicesLastUsername[] = "google.services.last_username"; |
1908 | 1826 |
1909 // Obfuscated account ID that identifies the current user logged into sync and | 1827 // Obfuscated account ID that identifies the current user logged into sync and |
1910 // other google services. | 1828 // other google services. |
1911 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; | 1829 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; |
1912 | 1830 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2179 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; | 2097 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; |
2180 | 2098 |
2181 // The local state pref that stores device activity times before reporting | 2099 // The local state pref that stores device activity times before reporting |
2182 // them to the policy server. | 2100 // them to the policy server. |
2183 const char kDeviceActivityTimes[] = "device_status.activity_times"; | 2101 const char kDeviceActivityTimes[] = "device_status.activity_times"; |
2184 | 2102 |
2185 // A pref holding the last known location when device location reporting is | 2103 // A pref holding the last known location when device location reporting is |
2186 // enabled. | 2104 // enabled. |
2187 const char kDeviceLocation[] = "device_status.location"; | 2105 const char kDeviceLocation[] = "device_status.location"; |
2188 | 2106 |
2189 // A string that is used to store first-time sync startup after once sync is | |
2190 // disabled. This will be refreshed every sign-in. | |
2191 const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token"; | |
2192 | |
2193 // A pref holding the value of the policy used to disable mounting of external | 2107 // A pref holding the value of the policy used to disable mounting of external |
2194 // storage for the user. | 2108 // storage for the user. |
2195 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; | 2109 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; |
2196 | 2110 |
2197 // A pref holding the value of the policy used to disable playing audio on | 2111 // A pref holding the value of the policy used to disable playing audio on |
2198 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite | 2112 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite |
2199 // it, therefore when the policy is lifted the original mute state is restored. | 2113 // it, therefore when the policy is lifted the original mute state is restored. |
2200 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; | 2114 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; |
2201 | 2115 |
2202 // A dictionary that maps usernames to wallpaper properties. | 2116 // A dictionary that maps usernames to wallpaper properties. |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2676 // "mapped_title" entries, detailing the bookmark target URL (if any), the title | 2590 // "mapped_title" entries, detailing the bookmark target URL (if any), the title |
2677 // given by the PartnerBookmarksProvider and either the user-visible renamed | 2591 // given by the PartnerBookmarksProvider and either the user-visible renamed |
2678 // title or an empty string if the bookmark node was removed. | 2592 // title or an empty string if the bookmark node was removed. |
2679 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; | 2593 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; |
2680 #endif | 2594 #endif |
2681 | 2595 |
2682 // Whether DNS Quick Check is disabled in proxy resolution. | 2596 // Whether DNS Quick Check is disabled in proxy resolution. |
2683 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; | 2597 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; |
2684 | 2598 |
2685 } // namespace prefs | 2599 } // namespace prefs |
OLD | NEW |