#include "components/metrics/date_changed_helper.h"
#include "base/time/time.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
namespace metrics {
namespace {
base::Time GetCurrentDate(base::Time now) { … }
void UpdateStoredDate(PrefService* prefs,
const char* pref_name,
base::Time now) { … }
bool IsStoredDateToday(PrefService* prefs,
const char* pref_name,
base::Time now) { … }
}
namespace date_changed_helper {
bool HasDateChangedSinceLastCall(PrefService* prefs, const char* pref_name) { … }
void RegisterPref(PrefRegistrySimple* registry, const char* pref_name) { … }
}
}