summaryrefslogtreecommitdiffstats
path: root/components/sync_driver/device_info_sync_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/sync_driver/device_info_sync_service.h')
-rw-r--r--components/sync_driver/device_info_sync_service.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/components/sync_driver/device_info_sync_service.h b/components/sync_driver/device_info_sync_service.h
index 7d529bb..6c82a12 100644
--- a/components/sync_driver/device_info_sync_service.h
+++ b/components/sync_driver/device_info_sync_service.h
@@ -52,13 +52,8 @@ class DeviceInfoSyncService : public syncer::SyncableService,
void AddObserver(Observer* observer) override;
void RemoveObserver(Observer* observer) override;
- // Called to update local device backup time.
- void UpdateLocalDeviceBackupTime(base::Time backup_time);
- // Gets the most recently set local device backup time.
- base::Time GetLocalDeviceBackupTime() const;
-
private:
- // Create SyncData from local DeviceInfo and |local_device_backup_time_|.
+ // Create SyncData from local DeviceInfo.
syncer::SyncData CreateLocalData(const DeviceInfo* info);
// Create SyncData from EntitySpecifics.
static syncer::SyncData CreateLocalData(
@@ -74,25 +69,6 @@ class DeviceInfoSyncService : public syncer::SyncableService,
// Notify all registered observers.
void NotifyObservers();
- // Updates backup time in place in |sync_data| if it is different than
- // the one stored in |local_device_backup_time_|.
- // Returns true if backup time was updated.
- bool UpdateBackupTime(syncer::SyncData* sync_data);
-
- // |local_device_backup_time_| accessors.
- int64_t local_device_backup_time() const { return local_device_backup_time_; }
- bool has_local_device_backup_time() const {
- return local_device_backup_time_ >= 0;
- }
- void set_local_device_backup_time(int64_t value) {
- local_device_backup_time_ = value;
- }
- void clear_local_device_backup_time() { local_device_backup_time_ = -1; }
-
- // Local device last set backup time (in proto format).
- // -1 if the value hasn't been specified
- int64_t local_device_backup_time_;
-
// |local_device_info_provider_| isn't owned.
const LocalDeviceInfoProvider* const local_device_info_provider_;