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