| 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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 | 1791 |
| 1798 #if defined(OS_ANDROID) || defined(OS_IOS) | 1792 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 1799 // A boolean specifying whether a SPDY proxy is enabled. | 1793 // A boolean specifying whether a SPDY proxy is enabled. |
| 1800 const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled"; | 1794 const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled"; |
| 1801 const char kSpdyProxyAuthWasEnabledBefore[] = "spdy_proxy.was_enabled_before"; | 1795 const char kSpdyProxyAuthWasEnabledBefore[] = "spdy_proxy.was_enabled_before"; |
| 1802 #endif // defined(OS_ANDROID) || defined(OS_IOS) | 1796 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
| 1803 | 1797 |
| 1804 // Boolean which stores if the user is allowed to signin to chrome. | 1798 // Boolean which stores if the user is allowed to signin to chrome. |
| 1805 const char kSigninAllowed[] = "signin.allowed"; | 1799 const char kSigninAllowed[] = "signin.allowed"; |
| 1806 | 1800 |
| 1807 // 64-bit integer serialization of the base::Time when the last sync occurred. | |
| 1808 const char kSyncLastSyncedTime[] = "sync.last_synced_time"; | |
| 1809 | |
| 1810 // Boolean specifying whether the user finished setting up sync. | |
| 1811 const char kSyncHasSetupCompleted[] = "sync.has_setup_completed"; | |
| 1812 | |
| 1813 // Boolean specifying whether sync has an auth error. | |
| 1814 const char kSyncHasAuthError[] = "sync.has_auth_error"; | |
| 1815 | |
| 1816 // Boolean specifying whether to automatically sync all data types (including | |
| 1817 // future ones, as they're added). If this is true, the following preferences | |
| 1818 // (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored. | |
| 1819 const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced"; | |
| 1820 | |
| 1821 // Booleans specifying whether the user has selected to sync the following | |
| 1822 // datatypes. | |
| 1823 const char kSyncAppList[] = "sync.app_list"; | |
| 1824 const char kSyncAppNotifications[] = "sync.app_notifications"; | |
| 1825 const char kSyncAppSettings[] = "sync.app_settings"; | |
| 1826 const char kSyncApps[] = "sync.apps"; | |
| 1827 const char kSyncAutofillProfile[] = "sync.autofill_profile"; | |
| 1828 const char kSyncAutofill[] = "sync.autofill"; | |
| 1829 const char kSyncBookmarks[] = "sync.bookmarks"; | |
| 1830 const char kSyncDictionary[] = "sync.dictionary"; | |
| 1831 const char kSyncExtensionSettings[] = "sync.extension_settings"; | |
| 1832 const char kSyncExtensions[] = "sync.extensions"; | |
| 1833 const char kSyncFaviconImages[] = "sync.favicon_images"; | |
| 1834 const char kSyncFaviconTracking[] = "sync.favicon_tracking"; | |
| 1835 const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives"; | |
| 1836 const char kSyncManagedUserSettings[] = "sync.managed_user_settings"; | |
| 1837 const char kSyncManagedUserSharedSettings[] = | |
| 1838 "sync.managed_user_shared_settings"; | |
| 1839 const char kSyncManagedUsers[] = "sync.managed_users"; | |
| 1840 const char kSyncArticles[] = "sync.articles"; | |
| 1841 const char kSyncPasswords[] = "sync.passwords"; | |
| 1842 const char kSyncPreferences[] = "sync.preferences"; | |
| 1843 const char kSyncPriorityPreferences[] = "sync.priority_preferences"; | |
| 1844 const char kSyncSearchEngines[] = "sync.search_engines"; | |
| 1845 const char kSyncSessions[] = "sync.sessions"; | |
| 1846 const char kSyncSyncedNotificationAppInfo[] = | |
| 1847 "sync.synced_notification_app_info"; | |
| 1848 const char kSyncSyncedNotifications[] = "sync.synced_notifications"; | |
| 1849 const char kSyncTabs[] = "sync.tabs"; | |
| 1850 const char kSyncThemes[] = "sync.themes"; | |
| 1851 const char kSyncTypedUrls[] = "sync.typed_urls"; | |
| 1852 | |
| 1853 // Boolean used by enterprise configuration management in order to lock down | |
| 1854 // sync. | |
| 1855 const char kSyncManaged[] = "sync.managed"; | |
| 1856 | |
| 1857 // Boolean to prevent sync from automatically starting up. This is | |
| 1858 // used when sync is disabled by the user via the privacy dashboard. | |
| 1859 const char kSyncSuppressStart[] = "sync.suppress_start"; | |
| 1860 | |
| 1861 // List of the currently acknowledged set of sync types, used to figure out | |
| 1862 // if a new sync type has rolled out so we can notify the user. | |
| 1863 const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types"; | |
| 1864 | |
| 1865 // The GUID session sync will use to identify this client, even across sync | |
| 1866 // disable/enable events. | |
| 1867 const char kSyncSessionsGUID[] = "sync.session_sync_guid"; | |
| 1868 | |
| 1869 // An ID to uniquely identify this client to the invalidator service. | 1801 // An ID to uniquely identify this client to the invalidator service. |
| 1870 const char kInvalidatorClientId[] = "invalidator.client_id"; | 1802 const char kInvalidatorClientId[] = "invalidator.client_id"; |
| 1871 | 1803 |
| 1872 // Opaque state from the invalidation subsystem that is persisted via prefs. | 1804 // Opaque state from the invalidation subsystem that is persisted via prefs. |
| 1873 // The value is base 64 encoded. | 1805 // The value is base 64 encoded. |
| 1874 const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state"; | 1806 const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state"; |
| 1875 | 1807 |
| 1876 // List of received invalidations that have not been acted on by any clients | 1808 // List of received invalidations that have not been acted on by any clients |
| 1877 // yet. Used to keep invalidation clients in sync in case of a restart. | 1809 // yet. Used to keep invalidation clients in sync in case of a restart. |
| 1878 const char kInvalidatorSavedInvalidations[] = "invalidator.saved_invalidations"; | 1810 const char kInvalidatorSavedInvalidations[] = "invalidator.saved_invalidations"; |
| 1879 | 1811 |
| 1880 // A string that can be used to restore sync encryption infrastructure on | |
| 1881 // startup so that the user doesn't need to provide credentials on each start. | |
| 1882 const char kSyncEncryptionBootstrapToken[] = | |
| 1883 "sync.encryption_bootstrap_token"; | |
| 1884 | |
| 1885 // Same as kSyncEncryptionBootstrapToken, but derived from the keystore key, | |
| 1886 // so we don't have to do a GetKey command at restart. | |
| 1887 const char kSyncKeystoreEncryptionBootstrapToken[] = | |
| 1888 "sync.keystore_encryption_bootstrap_token"; | |
| 1889 | |
| 1890 // Boolean tracking whether the user chose to specify a secondary encryption | |
| 1891 // passphrase. | |
| 1892 const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase"; | |
| 1893 | |
| 1894 // String the identifies the last user that logged into sync and other | 1812 // String the identifies the last user that logged into sync and other |
| 1895 // google services. As opposed to kGoogleServicesUsername, this value is not | 1813 // google services. As opposed to kGoogleServicesUsername, this value is not |
| 1896 // cleared on signout, but while the user is signed in the two values will | 1814 // cleared on signout, but while the user is signed in the two values will |
| 1897 // be the same. | 1815 // be the same. |
| 1898 const char kGoogleServicesLastUsername[] = "google.services.last_username"; | 1816 const char kGoogleServicesLastUsername[] = "google.services.last_username"; |
| 1899 | 1817 |
| 1900 // Obfuscated account ID that identifies the current user logged into sync and | 1818 // Obfuscated account ID that identifies the current user logged into sync and |
| 1901 // other google services. | 1819 // other google services. |
| 1902 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; | 1820 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; |
| 1903 | 1821 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; | 2088 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; |
| 2171 | 2089 |
| 2172 // The local state pref that stores device activity times before reporting | 2090 // The local state pref that stores device activity times before reporting |
| 2173 // them to the policy server. | 2091 // them to the policy server. |
| 2174 const char kDeviceActivityTimes[] = "device_status.activity_times"; | 2092 const char kDeviceActivityTimes[] = "device_status.activity_times"; |
| 2175 | 2093 |
| 2176 // A pref holding the last known location when device location reporting is | 2094 // A pref holding the last known location when device location reporting is |
| 2177 // enabled. | 2095 // enabled. |
| 2178 const char kDeviceLocation[] = "device_status.location"; | 2096 const char kDeviceLocation[] = "device_status.location"; |
| 2179 | 2097 |
| 2180 // A string that is used to store first-time sync startup after once sync is | |
| 2181 // disabled. This will be refreshed every sign-in. | |
| 2182 const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token"; | |
| 2183 | |
| 2184 // A pref holding the value of the policy used to disable mounting of external | 2098 // A pref holding the value of the policy used to disable mounting of external |
| 2185 // storage for the user. | 2099 // storage for the user. |
| 2186 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; | 2100 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; |
| 2187 | 2101 |
| 2188 // A pref holding the value of the policy used to disable playing audio on | 2102 // A pref holding the value of the policy used to disable playing audio on |
| 2189 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite | 2103 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite |
| 2190 // it, therefore when the policy is lifted the original mute state is restored. | 2104 // it, therefore when the policy is lifted the original mute state is restored. |
| 2191 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; | 2105 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; |
| 2192 | 2106 |
| 2193 // A dictionary that maps usernames to wallpaper properties. | 2107 // A dictionary that maps usernames to wallpaper properties. |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2666 // Each list item is a dictionary containing a "url", a "provider_title" and | 2580 // Each list item is a dictionary containing a "url", a "provider_title" and |
| 2667 // "mapped_title" entries, detailing the bookmark target URL (if any), the title | 2581 // "mapped_title" entries, detailing the bookmark target URL (if any), the title |
| 2668 // given by the PartnerBookmarksProvider and either the user-visible renamed | 2582 // given by the PartnerBookmarksProvider and either the user-visible renamed |
| 2669 // title or an empty string if the bookmark node was removed. | 2583 // title or an empty string if the bookmark node was removed. |
| 2670 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; | 2584 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; |
| 2671 #endif | 2585 #endif |
| 2672 | 2586 |
| 2673 // Whether DNS Quick Check is disabled in proxy resolution. | 2587 // Whether DNS Quick Check is disabled in proxy resolution. |
| 2674 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; | 2588 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; |
| 2675 } // namespace prefs | 2589 } // namespace prefs |
| OLD | NEW |