#include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
#include <string_view>
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/common/buildflags.h"
#include "chrome/common/pref_names.h"
#include "components/metrics/metrics_service.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/constants/ash_features.h"
#include "chrome/browser/metrics/per_user_state_manager_chromeos.h"
#endif
namespace {
const bool* g_metrics_consent_for_testing = …;
}
void ChromeMetricsServiceAccessor::SetMetricsAndCrashReportingForTesting(
const bool* value) { … }
bool ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled() { … }
bool ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled(
PrefService* local_state) { … }
bool ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(
std::string_view trial_name,
std::string_view group_name,
variations::SyntheticTrialAnnotationMode annotation_mode) { … }
void ChromeMetricsServiceAccessor::SetForceIsMetricsReportingEnabledPrefLookup(
bool value) { … }
#if BUILDFLAG(ENABLE_PLUGINS)
void ChromeMetricsServiceAccessor::BindMetricsServiceReceiver(
mojo::PendingReceiver<chrome::mojom::MetricsService> receiver) { … }
#endif