chromium/components/metrics/net/cellular_logic_helper.cc

// Copyright 2016 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/metrics/net/cellular_logic_helper.h"

#include "base/metrics/field_trial_params.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/metrics/metrics_features.h"
#include "net/base/network_change_notifier.h"

namespace metrics {

namespace {

#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS)
const int kStandardUploadIntervalSeconds = 5 * 60;  // Five minutes.
#else
const int kStandardUploadIntervalSeconds =;  // Thirty minutes.
#endif

// This parameter is intended to be used for Structured metrics, which is
// currently only enabled on Chrome OS.
//
// This parameter should not be used for cellular devices.
constexpr base::FeatureParam<int> kUmaUploadCadence{};

// Android-only cellular settings.
#if BUILDFLAG(IS_ANDROID)
const int kStandardUploadIntervalCellularSeconds = 15 * 60;  // Fifteen minutes.
#endif

}  // namespace

base::TimeDelta GetUploadInterval(bool use_cellular_upload_interval) {}

bool ShouldUseCellularUploadInterval() {}

}  // namespace metrics