#include "components/privacy_sandbox/tracking_protection_onboarding.h"
#include "base/check.h"
#include "base/feature_list.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "components/prefs/pref_service.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
#include "components/privacy_sandbox/tracking_protection_prefs.h"
namespace privacy_sandbox {
namespace {
TrackingProtectionOnboardingAckAction;
TrackingProtectionOnboardingStatus;
TrackingProtectionOnboardingStatus GetInternalModeBOnboardingStatus(
PrefService* pref_service) { … }
TrackingProtectionOnboardingStatus GetInternalModeBSilentOnboardingStatus(
PrefService* pref_service) { … }
void CreateHistogramOnboardingStartupState(
TrackingProtectionOnboarding::OnboardingStartupState state) { … }
void CreateHistogramSilentOnboardingStartupState(
TrackingProtectionOnboarding::SilentOnboardingStartupState state) { … }
void CreateTimingHistogramOnboardingStartup(const char* name,
base::TimeDelta sample) { … }
void RecordOnboardedHistogramsOnStartup(PrefService* pref_service) { … }
void RecordEligibleWaitingToOnboardHistogramsOnStartup(
PrefService* pref_service) { … }
void RecordHistogramsOnboardingOnStartup(PrefService* pref_service) { … }
void RecordHistogramsSilentOnboardingOnStartup(PrefService* pref_service) { … }
void RecordHistogramsOnStartup(PrefService* pref_service) { … }
}
TrackingProtectionOnboarding::TrackingProtectionOnboarding(
PrefService* pref_service)
: … { … }
TrackingProtectionOnboarding::~TrackingProtectionOnboarding() = default;
void TrackingProtectionOnboarding::Shutdown() { … }
TrackingProtectionOnboarding::OnboardingStatus
TrackingProtectionOnboarding::GetOnboardingStatus() const { … }
TrackingProtectionOnboarding::SilentOnboardingStatus
TrackingProtectionOnboarding::GetSilentOnboardingStatus() const { … }
}