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.
5 #include "components/sync_driver/pref_names.h"
7 namespace sync_driver
{
11 // 64-bit integer serialization of the base::Time when the last sync occurred.
12 const char kSyncLastSyncedTime
[] = "sync.last_synced_time";
14 // 64-bit integer serialization of the base::Time of the last sync poll.
15 const char kSyncLastPollTime
[] = "sync.last_poll_time";
17 // Boolean specifying whether the user finished setting up sync.
18 const char kSyncHasSetupCompleted
[] = "sync.has_setup_completed";
20 // Boolean specifying whether sync has an auth error.
21 const char kSyncHasAuthError
[] = "sync.has_auth_error";
23 // Boolean specifying whether to automatically sync all data types (including
24 // future ones, as they're added). If this is true, the following preferences
25 // (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
26 const char kSyncKeepEverythingSynced
[] = "sync.keep_everything_synced";
28 // Booleans specifying whether the user has selected to sync the following
30 const char kSyncAppList
[] = "sync.app_list";
31 const char kSyncAppNotifications
[] = "sync.app_notifications";
32 const char kSyncAppSettings
[] = "sync.app_settings";
33 const char kSyncApps
[] = "sync.apps";
34 const char kSyncArticles
[] = "sync.articles";
35 const char kSyncAutofillProfile
[] = "sync.autofill_profile";
36 const char kSyncAutofillWallet
[] = "sync.autofill_wallet";
37 const char kSyncAutofillWalletMetadata
[] = "sync.autofill_wallet_metadata";
38 const char kSyncAutofill
[] = "sync.autofill";
39 const char kSyncBookmarks
[] = "sync.bookmarks";
40 const char kSyncDeviceInfo
[] = "sync.device_info";
41 const char kSyncDictionary
[] = "sync.dictionary";
42 const char kSyncExtensionSettings
[] = "sync.extension_settings";
43 const char kSyncExtensions
[] = "sync.extensions";
44 const char kSyncFaviconImages
[] = "sync.favicon_images";
45 const char kSyncFaviconTracking
[] = "sync.favicon_tracking";
46 const char kSyncHistoryDeleteDirectives
[] = "sync.history_delete_directives";
47 const char kSyncPasswords
[] = "sync.passwords";
48 const char kSyncPreferences
[] = "sync.preferences";
49 const char kSyncPriorityPreferences
[] = "sync.priority_preferences";
50 const char kSyncSearchEngines
[] = "sync.search_engines";
51 const char kSyncSessions
[] = "sync.sessions";
52 const char kSyncSupervisedUserSettings
[] = "sync.managed_user_settings";
53 const char kSyncSupervisedUserSharedSettings
[] =
54 "sync.managed_user_shared_settings";
55 const char kSyncSupervisedUserWhitelists
[] =
56 "sync.managed_user_whitelists";
57 const char kSyncSupervisedUsers
[] = "sync.managed_users";
58 const char kSyncSyncedNotificationAppInfo
[] =
59 "sync.synced_notification_app_info";
60 const char kSyncSyncedNotifications
[] = "sync.synced_notifications";
61 const char kSyncTabs
[] = "sync.tabs";
62 const char kSyncThemes
[] = "sync.themes";
63 const char kSyncTypedUrls
[] = "sync.typed_urls";
64 const char kSyncWifiCredentials
[] = "sync.wifi_credentials";
66 // Boolean used by enterprise configuration management in order to lock down
68 const char kSyncManaged
[] = "sync.managed";
70 // Boolean to prevent sync from automatically starting up. This is
71 // used when sync is disabled by the user via the privacy dashboard.
72 const char kSyncSuppressStart
[] = "sync.suppress_start";
74 // A string that can be used to restore sync encryption infrastructure on
75 // startup so that the user doesn't need to provide credentials on each start.
76 const char kSyncEncryptionBootstrapToken
[] = "sync.encryption_bootstrap_token";
78 // Same as kSyncEncryptionBootstrapToken, but derived from the keystore key,
79 // so we don't have to do a GetKey command at restart.
80 const char kSyncKeystoreEncryptionBootstrapToken
[] =
81 "sync.keystore_encryption_bootstrap_token";
83 // The GUID session sync will use to identify this client, even across sync
84 // disable/enable events.
85 const char kSyncSessionsGUID
[] = "sync.session_sync_guid";
87 #if defined(OS_CHROMEOS)
88 // A string that is used to store first-time sync startup after once sync is
89 // disabled. This will be refreshed every sign-in.
90 const char kSyncSpareBootstrapToken
[] = "sync.spare_bootstrap_token";
91 #endif // defined(OS_CHROMEOS)
93 // Stores how many times to try rollback before giving up.
94 const char kSyncRemainingRollbackTries
[] = "sync.remaining_rollback_tries";
96 // Stores the timestamp of first sync.
97 const char kSyncFirstSyncTime
[] = "sync.first_sync_time";
99 // Stores whether a platform specific passphrase error prompt has been shown to
100 // the user (e.g. an Android system notification). Used for out of band prompts
101 // that we only want to use once.
102 const char kSyncPassphrasePrompted
[] = "sync.passphrase_prompted";
104 // Stores how many times received MEMORY_PRESSURE_LEVEL_CRITICAL.
105 const char kSyncMemoryPressureWarningCount
[] = "sync.memory_warning_count";
107 // Stores if sync shutdown cleanly.
108 const char kSyncShutdownCleanly
[] = "sync.shutdown_cleanly";
110 // Dictionary of last seen invalidation versions for each model type.
111 const char kSyncInvalidationVersions
[] = "sync.invalidation_versions";
113 // The product version from the last restart of Chrome.
114 const char kSyncLastRunVersion
[] = "sync.last_run_version";
116 // Flag indicating that passphrase encryption transition is in progress.
117 // Transition involves multiple steps and should continue across restarts.
118 const char kSyncPassphraseEncryptionTransitionInProgress
[] =
119 "sync.passphrase_encryption_transition_in_progress";
121 // Updated Nigori state after user entering passphrase. This Nigori state should
122 // be persisted across restarts and passed to backend when it is initialized
123 // after directory cleanup. Preference contains base64 encoded serialized
124 // sync_pb::NigoriSpecifics.
125 const char kSyncNigoriStateForPassphraseTransition
[] =
126 "sync.nigori_state_for_passphrase_transition";
130 } // namespace sync_driver