Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Issue 332923002: [sync] Add backup time in synced device info so that server can flag device (Closed)

Created:
6 years, 6 months ago by haitaol1
Modified:
6 years, 5 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, albertb+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

[sync] Add backup time in synced device info so that server knows which device can be rolled back to when. Backup DB is checked and backup time in device info is updated periodically to keep server informed about backup state. BUG=362679 TBR=gbillock@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283060

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : sync ToT #

Patch Set 5 : fix tests #

Patch Set 6 : #

Patch Set 7 : sync to ToT #

Patch Set 8 : y #

Patch Set 9 : fix tests #

Patch Set 10 : check db on DB thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -32 lines) Patch
M chrome/browser/sync/glue/synced_device_tracker.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/synced_device_tracker.cc View 1 2 3 chunks +44 lines, -11 lines 0 comments Download
M chrome/browser/sync/glue/synced_device_tracker_unittest.cc View 1 2 3 4 3 chunks +30 lines, -17 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 5 chunks +58 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc View 1 2 3 4 5 6 7 8 4 chunks +29 lines, -2 lines 0 comments Download
M sync/internal_api/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A sync/internal_api/public/util/sync_db_util.h View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A sync/internal_api/sync_db_util.cc View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M sync/protocol/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sync/protocol/device_info_specifics.proto View 1 1 chunk +4 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 6 5 chunks +10 lines, -0 lines 0 comments Download
M sync/sync_internal_api.gypi View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
haitaol1
6 years, 6 months ago (2014-06-12 21:53:51 UTC) #1
Nicolas Zea
https://codereview.chromium.org/332923002/diff/1/chrome/browser/sync/glue/synced_device_tracker.cc File chrome/browser/sync/glue/synced_device_tracker.cc (right): https://codereview.chromium.org/332923002/diff/1/chrome/browser/sync/glue/synced_device_tracker.cc#newcode210 chrome/browser/sync/glue/synced_device_tracker.cc:210: specifics.set_backup_timestamp(backup_time.ToInternalValue()); ToInternalValue uses the windows epoch. It's probably better ...
6 years, 6 months ago (2014-06-13 22:36:41 UTC) #2
haitaol1
https://codereview.chromium.org/332923002/diff/1/chrome/browser/sync/glue/synced_device_tracker.cc File chrome/browser/sync/glue/synced_device_tracker.cc (right): https://codereview.chromium.org/332923002/diff/1/chrome/browser/sync/glue/synced_device_tracker.cc#newcode210 chrome/browser/sync/glue/synced_device_tracker.cc:210: specifics.set_backup_timestamp(backup_time.ToInternalValue()); On 2014/06/13 22:36:41, Nicolas Zea wrote: > ToInternalValue ...
6 years, 6 months ago (2014-06-13 23:28:26 UTC) #3
Nicolas Zea
https://codereview.chromium.org/332923002/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/332923002/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode2575 chrome/browser/sync/profile_sync_service.cc:2575: // closing backup DB. On 2014/06/13 23:28:25, haitaol1 wrote: ...
6 years, 6 months ago (2014-06-13 23:48:52 UTC) #4
haitaol1
https://codereview.chromium.org/332923002/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/332923002/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode2575 chrome/browser/sync/profile_sync_service.cc:2575: // closing backup DB. Backup may or may not ...
6 years, 6 months ago (2014-06-16 17:35:29 UTC) #5
Nicolas Zea
lgtm
6 years, 6 months ago (2014-06-17 21:46:31 UTC) #6
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 6 months ago (2014-06-18 20:14:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/332923002/60001
6 years, 6 months ago (2014-06-18 20:15:28 UTC) #8
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 6 months ago (2014-06-19 16:37:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/332923002/80001
6 years, 6 months ago (2014-06-19 16:38:48 UTC) #10
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 5 months ago (2014-07-14 21:41:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/332923002/180001
6 years, 5 months ago (2014-07-14 21:43:55 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 22:41:58 UTC) #13
Message was sent while issue was closed.
Change committed as 283060

Powered by Google App Engine
This is Rietveld 408576698