unified_consent_metrics.h 1015 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2018 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. #ifndef COMPONENTS_UNIFIED_CONSENT_UNIFIED_CONSENT_METRICS_H_
  5. #define COMPONENTS_UNIFIED_CONSENT_UNIFIED_CONSENT_METRICS_H_
  6. class PrefService;
  7. namespace syncer {
  8. class SyncUserSettings;
  9. }
  10. namespace unified_consent {
  11. namespace metrics {
  12. // Records settings entries in the SyncAndGoogleServicesSettings.
  13. // kNone is recorded when none of the settings is enabled.
  14. void RecordSettingsHistogram(PrefService* pref_service);
  15. // Records the sync data types that were turned off during the advanced sync
  16. // opt-in flow. When none of the data types were turned off, kNone is recorded.
  17. void RecordSyncSetupDataTypesHistrogam(syncer::SyncUserSettings* sync_settings,
  18. PrefService* pref_service);
  19. } // namespace metrics
  20. } // namespace unified_consent
  21. #endif // COMPONENTS_UNIFIED_CONSENT_UNIFIED_CONSENT_METRICS_H_