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 #ifndef COMPONENTS_SYNC_DRIVER_USER_SELECTABLE_SYNC_TYPE_H_
6 #define COMPONENTS_SYNC_DRIVER_USER_SELECTABLE_SYNC_TYPE_H_
8 namespace sync_driver {
9 namespace user_selectable_type {
11 // An enumeration of the sync datatypes that are explicitly exposed to the user
12 // via checkboxes in the "Advanced Sync Preferences" dialog. Used solely for the
13 // purposes of UMA histogram logging of the datatypes explicitly selected by
14 // users when sync is configured on a machine. This is a subset of the sync
15 // types listed in sync/internal_api/public/base/model_type.h.
17 // Note: New sync datatypes must be added to the end of this list. Adding them
18 // anywhere else will result in incorrect histogram logging.
20 // THIS ENUM IS MEANT SOLELY FOR THE PURPOSE OF HISTOGRAM LOGGING. IF YOU ARE
21 // LOOKING TO MODIFY SYNC FUNCTIONALITY AND NEED A LIST OF SYNC TYPES, USE
24 enum UserSelectableSyncType {
34 // TODO(petewil): There was talk of removing this from user selectable sync
36 SYNCED_NOTIFICATIONS = 9,
38 // The datatypes below are implicitly synced, and are not exposed via user
39 // selectable checkboxes.
47 // EXTENSION_SETTINGS,
51 // PRIORITY_PREFERENCES,
53 // HISTORY_DELETE_DIRECTIVES,
57 // SYNCED_NOTIFICATION_APP_INFO
59 // Number of sync datatypes exposed to the user via checboxes in the UI.
60 SELECTABLE_DATATYPE_COUNT = 10,
63 } // namespace user_selectable_type
64 } // namespace sync_driver
66 #endif // COMPONENTS_SYNC_DRIVER_USER_SELECTABLE_SYNC_TYPE_H_