chromium/chrome/browser/metrics/chrome_metrics_service_accessor.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

}  // namespace

// static
void ChromeMetricsServiceAccessor::SetMetricsAndCrashReportingForTesting(
    const bool* value) {}

// static
bool ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled() {}

// static
bool ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled(
    PrefService* local_state) {}

// static
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)
// static
void ChromeMetricsServiceAccessor::BindMetricsServiceReceiver(
    mojo::PendingReceiver<chrome::mojom::MetricsService> receiver) {}
#endif  // BUILDFLAG(ENABLE_PLUGINS)