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

Issue 235053006: Add sync manager classes for backup/rollback: (Closed)

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

Description

Add sync manager classes for backup/rollback: * SyncBackupManager runs before first-sync to save local data in backup DB. * SyncRollbackManager deletes local data that's not found in backup DB. BUG=362679 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265027

Patch Set 1 #

Total comments: 26

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : #

Total comments: 16

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1252 lines, -1 line) Patch
M sync/internal_api/public/base/model_type.h View 1 chunk +3 lines, -0 lines 0 comments Download
A sync/internal_api/sync_backup_manager.h View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
A sync/internal_api/sync_backup_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +112 lines, -0 lines 0 comments Download
A sync/internal_api/sync_backup_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +112 lines, -0 lines 0 comments Download
A sync/internal_api/sync_rollback_manager.h View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
A sync/internal_api/sync_rollback_manager.cc View 1 2 3 4 5 6 7 1 chunk +133 lines, -0 lines 0 comments Download
A sync/internal_api/sync_rollback_manager_base.h View 1 2 3 4 5 6 7 8 1 chunk +140 lines, -0 lines 0 comments Download
A sync/internal_api/sync_rollback_manager_base.cc View 1 2 3 4 5 6 7 8 9 1 chunk +322 lines, -0 lines 0 comments Download
A sync/internal_api/sync_rollback_manager_base_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +70 lines, -0 lines 0 comments Download
A sync/internal_api/sync_rollback_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +205 lines, -0 lines 0 comments Download
M sync/sync_internal_api.gypi View 1 2 chunks +6 lines, -0 lines 0 comments Download
M sync/sync_tests.gypi View 1 1 chunk +4 lines, -1 line 0 comments Download
M sync/syncable/model_type.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
haitaol1
6 years, 8 months ago (2014-04-11 18:49:59 UTC) #1
Nicolas Zea
https://codereview.chromium.org/235053006/diff/1/sync/internal_api/public/test/test_internal_components_factory.h File sync/internal_api/public/test/test_internal_components_factory.h (right): https://codereview.chromium.org/235053006/diff/1/sync/internal_api/public/test/test_internal_components_factory.h#newcode26 sync/internal_api/public/test/test_internal_components_factory.h:26: explicit TestInternalComponentsFactory( Comment for both these constructors, and what ...
6 years, 8 months ago (2014-04-14 21:36:31 UTC) #2
haitaol1
https://codereview.chromium.org/235053006/diff/1/sync/internal_api/public/test/test_internal_components_factory.h File sync/internal_api/public/test/test_internal_components_factory.h (right): https://codereview.chromium.org/235053006/diff/1/sync/internal_api/public/test/test_internal_components_factory.h#newcode26 sync/internal_api/public/test/test_internal_components_factory.h:26: explicit TestInternalComponentsFactory( On 2014/04/14 21:36:31, Nicolas Zea wrote: > ...
6 years, 8 months ago (2014-04-15 00:19:06 UTC) #3
maniscalco
https://codereview.chromium.org/235053006/diff/60001/sync/internal_api/sync_backup_manager.h File sync/internal_api/sync_backup_manager.h (right): https://codereview.chromium.org/235053006/diff/60001/sync/internal_api/sync_backup_manager.h#newcode14 sync/internal_api/sync_backup_manager.h:14: // SyncBackupManager runs before user signs into sync to ...
6 years, 8 months ago (2014-04-15 16:29:13 UTC) #4
haitaol1
https://codereview.chromium.org/235053006/diff/60001/sync/internal_api/sync_backup_manager.h File sync/internal_api/sync_backup_manager.h (right): https://codereview.chromium.org/235053006/diff/60001/sync/internal_api/sync_backup_manager.h#newcode14 sync/internal_api/sync_backup_manager.h:14: // SyncBackupManager runs before user signs into sync to ...
6 years, 8 months ago (2014-04-15 16:59:51 UTC) #5
maniscalco
https://codereview.chromium.org/235053006/diff/60001/sync/internal_api/sync_backup_manager.h File sync/internal_api/sync_backup_manager.h (right): https://codereview.chromium.org/235053006/diff/60001/sync/internal_api/sync_backup_manager.h#newcode14 sync/internal_api/sync_backup_manager.h:14: // SyncBackupManager runs before user signs into sync to ...
6 years, 8 months ago (2014-04-15 17:21:19 UTC) #6
haitaol1
https://codereview.chromium.org/235053006/diff/60001/sync/internal_api/sync_backup_manager.h File sync/internal_api/sync_backup_manager.h (right): https://codereview.chromium.org/235053006/diff/60001/sync/internal_api/sync_backup_manager.h#newcode14 sync/internal_api/sync_backup_manager.h:14: // SyncBackupManager runs before user signs into sync to ...
6 years, 8 months ago (2014-04-15 18:11:20 UTC) #7
Nicolas Zea
I find it strange that we'll now have three different types of SyncManager: the normal ...
6 years, 8 months ago (2014-04-15 23:05:51 UTC) #8
haitaol1
On 2014/04/15 23:05:51, Nicolas Zea wrote: > I find it strange that we'll now have ...
6 years, 8 months ago (2014-04-16 21:52:22 UTC) #9
haitaol1
https://codereview.chromium.org/235053006/diff/80001/sync/internal_api/sync_backup_manager.h File sync/internal_api/sync_backup_manager.h (right): https://codereview.chromium.org/235053006/diff/80001/sync/internal_api/sync_backup_manager.h#newcode14 sync/internal_api/sync_backup_manager.h:14: // SyncBackupManager runs before user signs into sync to ...
6 years, 8 months ago (2014-04-16 21:52:35 UTC) #10
haitaol1
Changed to use ondisk sync db and reverted changes to TestInternalComponentFactory. PTAL.
6 years, 8 months ago (2014-04-17 16:41:13 UTC) #11
Nicolas Zea
https://codereview.chromium.org/235053006/diff/120001/sync/internal_api/sync_backup_manager.cc File sync/internal_api/sync_backup_manager.cc (right): https://codereview.chromium.org/235053006/diff/120001/sync/internal_api/sync_backup_manager.cc#newcode21 sync/internal_api/sync_backup_manager.cc:21: NormalizeEntries(); Is it necessary to call NormalizeEntries on every ...
6 years, 8 months ago (2014-04-17 18:22:55 UTC) #12
haitaol1
https://codereview.chromium.org/235053006/diff/120001/sync/internal_api/sync_backup_manager.cc File sync/internal_api/sync_backup_manager.cc (right): https://codereview.chromium.org/235053006/diff/120001/sync/internal_api/sync_backup_manager.cc#newcode21 sync/internal_api/sync_backup_manager.cc:21: NormalizeEntries(); On 2014/04/17 18:22:56, Nicolas Zea wrote: > Is ...
6 years, 8 months ago (2014-04-17 19:30:38 UTC) #13
Nicolas Zea
mostly LG, with one further comment https://codereview.chromium.org/235053006/diff/120001/sync/internal_api/sync_rollback_manager_base.h File sync/internal_api/sync_rollback_manager_base.h (right): https://codereview.chromium.org/235053006/diff/120001/sync/internal_api/sync_rollback_manager_base.h#newcode116 sync/internal_api/sync_rollback_manager_base.h:116: void UpdateNewEntryStats(ModelType type); ...
6 years, 8 months ago (2014-04-17 20:26:44 UTC) #14
haitaol1
https://codereview.chromium.org/235053006/diff/120001/sync/internal_api/sync_rollback_manager_base.h File sync/internal_api/sync_rollback_manager_base.h (right): https://codereview.chromium.org/235053006/diff/120001/sync/internal_api/sync_rollback_manager_base.h#newcode116 sync/internal_api/sync_rollback_manager_base.h:116: void UpdateNewEntryStats(ModelType type); On 2014/04/17 20:26:44, Nicolas Zea wrote: ...
6 years, 8 months ago (2014-04-17 22:21:18 UTC) #15
Nicolas Zea
LGTM, thanks!
6 years, 8 months ago (2014-04-17 22:29:34 UTC) #16
haitaol1
Thanks for reviewing!
6 years, 8 months ago (2014-04-17 22:50:32 UTC) #17
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 8 months ago (2014-04-17 22:50:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/235053006/160001
6 years, 8 months ago (2014-04-17 22:51:29 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-18 00:04:47 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-18 00:04:47 UTC) #21
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 8 months ago (2014-04-18 16:49:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/235053006/180001
6 years, 8 months ago (2014-04-18 16:49:26 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-18 18:46:54 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-18 18:46:54 UTC) #25
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 8 months ago (2014-04-18 20:58:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/235053006/200001
6 years, 8 months ago (2014-04-18 21:02:52 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-18 22:49:34 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-18 22:49:34 UTC) #29
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 8 months ago (2014-04-21 16:45:23 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/235053006/220001
6 years, 8 months ago (2014-04-21 16:45:28 UTC) #31
commit-bot: I haz the power
6 years, 8 months ago (2014-04-21 18:35:47 UTC) #32
Message was sent while issue was closed.
Change committed as 265027

Powered by Google App Engine
This is Rietveld 408576698