#include "chrome/browser/privacy/privacy_metrics_service.h"
#include "base/metrics/histogram_functions.h"
#include "chrome/browser/preloading/preloading_prefs.h"
#include "chrome/common/pref_names.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/prefs/pref_service.h"
#include "components/privacy_sandbox/tracking_protection_prefs.h"
#include "components/spellcheck/browser/pref_names.h"
#include "components/sync/service/sync_service.h"
PrivacyMetricsService::PrivacyMetricsService(
PrefService* pref_service,
HostContentSettingsMap* host_content_settings_map,
syncer::SyncService* sync_service,
signin::IdentityManager* identity_manager)
: … { … }
PrivacyMetricsService::~PrivacyMetricsService() = default;
void PrivacyMetricsService::Shutdown() { … }
void PrivacyMetricsService::OnStateChanged(syncer::SyncService* sync) { … }
void PrivacyMetricsService::OnPrimaryAccountChanged(
const signin::PrimaryAccountChangeEvent& event_details) { … }
void PrivacyMetricsService::RecordStartupMetrics() { … }
void PrivacyMetricsService::UnregisterObservers() { … }
bool PrivacyMetricsService::IsClearOnExitEnabled() { … }
void PrivacyMetricsService::RecordClearOnExitSyncEvent(
ClearOnExitSyncEvent event) const { … }