#include "chrome/browser/enterprise/reporting/report_scheduler_desktop.h"
#include <optional>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/metrics/field_trial_params.h"
#include "base/notreached.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/enterprise/reporting/prefs.h"
#include "chrome/browser/profiles/reporting_util.h"
#include "chrome/browser/upgrade_detector/build_state.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/pref_names.h"
#include "components/enterprise/browser/reporting/report_scheduler.h"
#include "components/policy/core/common/cloud/dm_token.h"
#include "components/prefs/pref_service.h"
em;
namespace enterprise_reporting {
namespace {
constexpr bool ShouldReportUpdates() { … }
PrefService* LocalState() { … }
}
ReportSchedulerDesktop::ReportSchedulerDesktop()
: … { … }
ReportSchedulerDesktop::ReportSchedulerDesktop(Profile* profile)
: … { … }
ReportSchedulerDesktop::~ReportSchedulerDesktop() { … }
PrefService* ReportSchedulerDesktop::GetPrefService() { … }
void ReportSchedulerDesktop::StartWatchingUpdatesIfNeeded(
base::Time last_upload,
base::TimeDelta upload_interval) { … }
void ReportSchedulerDesktop::StopWatchingUpdates() { … }
void ReportSchedulerDesktop::OnBrowserVersionUploaded() { … }
policy::DMToken ReportSchedulerDesktop::GetProfileDMToken() { … }
std::string ReportSchedulerDesktop::GetProfileClientId() { … }
void ReportSchedulerDesktop::OnUpdate(const BuildState* build_state) { … }
}