#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;
#else
const int kStandardUploadIntervalSeconds = …;
#endif
constexpr base::FeatureParam<int> kUmaUploadCadence{ … };
#if BUILDFLAG(IS_ANDROID)
const int kStandardUploadIntervalCellularSeconds = 15 * 60;
#endif
}
base::TimeDelta GetUploadInterval(bool use_cellular_upload_interval) { … }
bool ShouldUseCellularUploadInterval() { … }
}