1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "components/sync_driver/pref_names.h" 6 7namespace sync_driver { 8 9namespace prefs { 10 11// Set to true when enhanced bookmarks experiment is enabled via Chrome sync. 12const char kEnhancedBookmarksExperimentEnabled[] = "enhanced_bookmarks_enabled"; 13 14// Enhanced bookmarks extension id passed via Chrome sync. 15const char kEnhancedBookmarksExtensionId[] = "enhanced_bookmarks_extension_id"; 16 17// 64-bit integer serialization of the base::Time when the last sync occurred. 18const char kSyncLastSyncedTime[] = "sync.last_synced_time"; 19 20// Boolean specifying whether the user finished setting up sync. 21const char kSyncHasSetupCompleted[] = "sync.has_setup_completed"; 22 23// Boolean specifying whether sync has an auth error. 24const char kSyncHasAuthError[] = "sync.has_auth_error"; 25 26// Boolean specifying whether to automatically sync all data types (including 27// future ones, as they're added). If this is true, the following preferences 28// (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored. 29const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced"; 30 31// Booleans specifying whether the user has selected to sync the following 32// datatypes. 33const char kSyncAppList[] = "sync.app_list"; 34const char kSyncAppNotifications[] = "sync.app_notifications"; 35const char kSyncAppSettings[] = "sync.app_settings"; 36const char kSyncApps[] = "sync.apps"; 37const char kSyncArticles[] = "sync.articles"; 38const char kSyncAutofillProfile[] = "sync.autofill_profile"; 39const char kSyncAutofill[] = "sync.autofill"; 40const char kSyncBookmarks[] = "sync.bookmarks"; 41const char kSyncDeviceInfo[] = "sync.device_info"; 42const char kSyncDictionary[] = "sync.dictionary"; 43const char kSyncExtensionSettings[] = "sync.extension_settings"; 44const char kSyncExtensions[] = "sync.extensions"; 45const char kSyncFaviconImages[] = "sync.favicon_images"; 46const char kSyncFaviconTracking[] = "sync.favicon_tracking"; 47const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives"; 48const char kSyncPasswords[] = "sync.passwords"; 49const char kSyncPreferences[] = "sync.preferences"; 50const char kSyncPriorityPreferences[] = "sync.priority_preferences"; 51const char kSyncSearchEngines[] = "sync.search_engines"; 52const char kSyncSessions[] = "sync.sessions"; 53const char kSyncSupervisedUserSettings[] = "sync.managed_user_settings"; 54const char kSyncSupervisedUserSharedSettings[] = 55 "sync.managed_user_shared_settings"; 56const char kSyncSupervisedUsers[] = "sync.managed_users"; 57const char kSyncSyncedNotificationAppInfo[] = 58 "sync.synced_notification_app_info"; 59const char kSyncSyncedNotifications[] = "sync.synced_notifications"; 60const char kSyncTabs[] = "sync.tabs"; 61const char kSyncThemes[] = "sync.themes"; 62const char kSyncTypedUrls[] = "sync.typed_urls"; 63 64// Boolean used by enterprise configuration management in order to lock down 65// sync. 66const char kSyncManaged[] = "sync.managed"; 67 68// Boolean to prevent sync from automatically starting up. This is 69// used when sync is disabled by the user via the privacy dashboard. 70const char kSyncSuppressStart[] = "sync.suppress_start"; 71 72// A string that can be used to restore sync encryption infrastructure on 73// startup so that the user doesn't need to provide credentials on each start. 74const char kSyncEncryptionBootstrapToken[] = "sync.encryption_bootstrap_token"; 75 76// Same as kSyncEncryptionBootstrapToken, but derived from the keystore key, 77// so we don't have to do a GetKey command at restart. 78const char kSyncKeystoreEncryptionBootstrapToken[] = 79 "sync.keystore_encryption_bootstrap_token"; 80 81// Boolean tracking whether the user chose to specify a secondary encryption 82// passphrase. 83const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase"; 84 85// List of the currently acknowledged set of sync types, used to figure out 86// if a new sync type has rolled out so we can notify the user. 87const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types"; 88 89// The GUID session sync will use to identify this client, even across sync 90// disable/enable events. 91const char kSyncSessionsGUID[] = "sync.session_sync_guid"; 92 93#if defined(OS_CHROMEOS) 94// A string that is used to store first-time sync startup after once sync is 95// disabled. This will be refreshed every sign-in. 96const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token"; 97#endif // defined(OS_CHROMEOS) 98 99// Stores how many times to try rollback before giving up. 100const char kSyncRemainingRollbackTries[] = "sync.remaining_rollback_tries"; 101 102// Stores the timestamp of first sync. 103const char kSyncFirstSyncTime[] = "sync.first_sync_time"; 104 105} // namespace prefs 106 107} // namespace sync_driver 108