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 // Boolean specifying whether the user finished setting up sync.
15 const char kSyncHasSetupCompleted
[] = "sync.has_setup_completed";
17 // Boolean specifying whether sync has an auth error.
18 const char kSyncHasAuthError
[] = "sync.has_auth_error";
20 // Boolean specifying whether to automatically sync all data types (including
21 // future ones, as they're added). If this is true, the following preferences
22 // (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
23 const char kSyncKeepEverythingSynced
[] = "sync.keep_everything_synced";
25 // Booleans specifying whether the user has selected to sync the following
27 const char kSyncAppList
[] = "sync.app_list";
28 const char kSyncAppNotifications
[] = "sync.app_notifications";
29 const char kSyncAppSettings
[] = "sync.app_settings";
30 const char kSyncApps
[] = "sync.apps";
31 const char kSyncArticles
[] = "sync.articles";
32 const char kSyncAutofillProfile
[] = "sync.autofill_profile";
33 const char kSyncAutofillWallet
[] = "sync.autofill_wallet";
34 const char kSyncAutofill
[] = "sync.autofill";
35 const char kSyncBookmarks
[] = "sync.bookmarks";
36 const char kSyncDeviceInfo
[] = "sync.device_info";
37 const char kSyncDictionary
[] = "sync.dictionary";
38 const char kSyncExtensionSettings
[] = "sync.extension_settings";
39 const char kSyncExtensions
[] = "sync.extensions";
40 const char kSyncFaviconImages
[] = "sync.favicon_images";
41 const char kSyncFaviconTracking
[] = "sync.favicon_tracking";
42 const char kSyncHistoryDeleteDirectives
[] = "sync.history_delete_directives";
43 const char kSyncPasswords
[] = "sync.passwords";
44 const char kSyncPreferences
[] = "sync.preferences";
45 const char kSyncPriorityPreferences
[] = "sync.priority_preferences";
46 const char kSyncSearchEngines
[] = "sync.search_engines";
47 const char kSyncSessions
[] = "sync.sessions";
48 const char kSyncSupervisedUserSettings
[] = "sync.managed_user_settings";
49 const char kSyncSupervisedUserSharedSettings
[] =
50 "sync.managed_user_shared_settings";
51 const char kSyncSupervisedUserWhitelists
[] =
52 "sync.managed_user_whitelists";
53 const char kSyncSupervisedUsers
[] = "sync.managed_users";
54 const char kSyncSyncedNotificationAppInfo
[] =
55 "sync.synced_notification_app_info";
56 const char kSyncSyncedNotifications
[] = "sync.synced_notifications";
57 const char kSyncTabs
[] = "sync.tabs";
58 const char kSyncThemes
[] = "sync.themes";
59 const char kSyncTypedUrls
[] = "sync.typed_urls";
60 const char kSyncWifiCredentials
[] = "sync.wifi_credentials";
62 // Boolean used by enterprise configuration management in order to lock down
64 const char kSyncManaged
[] = "sync.managed";
66 // Boolean to prevent sync from automatically starting up. This is
67 // used when sync is disabled by the user via the privacy dashboard.
68 const char kSyncSuppressStart
[] = "sync.suppress_start";
70 // A string that can be used to restore sync encryption infrastructure on
71 // startup so that the user doesn't need to provide credentials on each start.
72 const char kSyncEncryptionBootstrapToken
[] = "sync.encryption_bootstrap_token";
74 // Same as kSyncEncryptionBootstrapToken, but derived from the keystore key,
75 // so we don't have to do a GetKey command at restart.
76 const char kSyncKeystoreEncryptionBootstrapToken
[] =
77 "sync.keystore_encryption_bootstrap_token";
79 // Boolean tracking whether the user chose to specify a secondary encryption
81 const char kSyncUsingSecondaryPassphrase
[] = "sync.using_secondary_passphrase";
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";
101 } // namespace sync_driver