#include "components/sync_device_info/device_info_prefs.h"
#include <algorithm>
#include <utility>
#include "base/time/clock.h"
#include "base/time/default_clock.h"
#include "base/trace_event/trace_event.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
namespace syncer {
namespace {
const char kDeviceInfoRecentGUIDsWithTimestamps[] = …;
const char kCacheGuidKey[] = …;
const char kTimestampKey[] = …;
constexpr base::TimeDelta kMaxTimeDeltaLocalCacheGuidsStored = …;
constexpr int kMaxLocalCacheGuidsStored = …;
bool MatchesGuidInDictionary(const base::Value& dict,
const std::string& cache_guid) { … }
}
void DeviceInfoPrefs::RegisterProfilePrefs(PrefRegistrySimple* registry) { … }
DeviceInfoPrefs::DeviceInfoPrefs(PrefService* pref_service,
const base::Clock* clock)
: … { … }
DeviceInfoPrefs::~DeviceInfoPrefs() = default;
bool DeviceInfoPrefs::IsRecentLocalCacheGuid(
const std::string& cache_guid) const { … }
void DeviceInfoPrefs::AddLocalCacheGuid(const std::string& cache_guid) { … }
void DeviceInfoPrefs::GarbageCollectExpiredCacheGuids() { … }
}