chromium/components/variations/variations_request_scheduler.cc

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

#include "components/variations/variations_request_scheduler.h"

#include <stddef.h>

#include <optional>

#include "base/metrics/field_trial_params.h"
#include "base/strings/string_number_conversions.h"
#include "build/build_config.h"
#include "components/variations/variations_associated_data.h"
#include "components/variations/variations_switches.h"

namespace variations {
namespace {

// The minimum time between consecutive variations seed fetches.
constexpr base::TimeDelta kVariationsSeedFetchIntervalMinimum =;

// Returns the variations seed fetch interval specified through the
// |kVariationsSeedFetchInterval| switch. The value returned is subject to a
// minimum value, |kVariationsSeedFetchIntervalMinimum|. If no overridden value
// is specified, or if it is malformed, an empty optional is returned.
std::optional<base::TimeDelta> GetOverriddenFetchPeriod() {}

}  // namespace

VariationsRequestScheduler::VariationsRequestScheduler(
    const base::RepeatingClosure& task)
    :{}

VariationsRequestScheduler::~VariationsRequestScheduler() = default;

void VariationsRequestScheduler::Start() {}

void VariationsRequestScheduler::Reset() {}

void VariationsRequestScheduler::ScheduleFetchShortly() {}

void VariationsRequestScheduler::OnAppEnterForeground() {}

base::TimeDelta VariationsRequestScheduler::GetFetchPeriod() const {}

base::RepeatingClosure VariationsRequestScheduler::task() const {}

#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
// static
VariationsRequestScheduler* VariationsRequestScheduler::Create(
    const base::RepeatingClosure& task,
    PrefService* local_state) {}
#endif  // !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)

}  // namespace variations