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

Issue 455023003: Let SyncBackupManager keep backup data in memory until shutdown. Only persist (Closed)

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

Description

Let SyncBackupManager keep backup data in memory until shutdown. Only persist backup data to disk if shutdown is due to switching to sync. BUG=362679 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289709 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289840

Patch Set 1 #

Total comments: 4

Patch Set 2 : ToT #

Total comments: 12

Patch Set 3 : address comments #

Patch Set 4 : fix sync manager test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -60 lines) Patch
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M sync/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M sync/internal_api/internal_components_factory_impl.cc View 2 chunks +14 lines, -3 lines 0 comments Download
M sync/internal_api/public/internal_components_factory.h View 2 chunks +16 lines, -0 lines 0 comments Download
M sync/internal_api/public/internal_components_factory_impl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/test/test_internal_components_factory.h View 1 2 3 chunks +5 lines, -12 lines 0 comments Download
M sync/internal_api/sync_backup_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/sync_backup_manager.cc View 1 3 chunks +11 lines, -3 lines 0 comments Download
M sync/internal_api/sync_backup_manager_unittest.cc View 1 2 6 chunks +33 lines, -8 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 3 6 chunks +15 lines, -5 lines 0 comments Download
M sync/internal_api/sync_rollback_manager.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/sync_rollback_manager_base.h View 3 chunks +5 lines, -3 lines 0 comments Download
M sync/internal_api/sync_rollback_manager_base.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M sync/internal_api/sync_rollback_manager_base_unittest.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M sync/internal_api/sync_rollback_manager_unittest.cc View 1 2 8 chunks +13 lines, -9 lines 0 comments Download
M sync/internal_api/test/test_internal_components_factory.cc View 1 2 4 chunks +15 lines, -4 lines 0 comments Download
M sync/sync.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M sync/sync_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A sync/syncable/deferred_on_disk_directory_backing_store.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A sync/syncable/deferred_on_disk_directory_backing_store.cc View 1 chunk +73 lines, -0 lines 0 comments Download
A sync/syncable/deferred_on_disk_directory_backing_store_unittest.cc View 1 2 1 chunk +114 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
haitaol1
6 years, 4 months ago (2014-08-08 21:57:13 UTC) #1
Nicolas Zea
https://codereview.chromium.org/455023003/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/455023003/diff/1/sync/internal_api/public/test/test_internal_components_factory.h#newcode16 sync/internal_api/public/test/test_internal_components_factory.h:16: StorageOption expected_storage); Why are there two storage options here? ...
6 years, 4 months ago (2014-08-11 18:12:25 UTC) #2
haitaol1
https://codereview.chromium.org/455023003/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/455023003/diff/1/sync/internal_api/public/test/test_internal_components_factory.h#newcode16 sync/internal_api/public/test/test_internal_components_factory.h:16: StorageOption expected_storage); |expected_storage| is the param that BuildDirectoryBackingStore() should ...
6 years, 4 months ago (2014-08-11 18:49:09 UTC) #3
maniscalco
On 2014/08/11 18:49:09, haitaol1 wrote: > https://codereview.chromium.org/455023003/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/455023003/diff/1/sync/internal_api/public/test/test_internal_components_factory.h#newcode16 > ...
6 years, 4 months ago (2014-08-11 21:12:21 UTC) #4
haitaol1
On 2014/08/11 21:12:21, maniscalco wrote: > On 2014/08/11 18:49:09, haitaol1 wrote: > > > https://codereview.chromium.org/455023003/diff/1/sync/internal_api/public/test/test_internal_components_factory.h ...
6 years, 4 months ago (2014-08-11 21:57:30 UTC) #5
maniscalco
On 2014/08/11 21:57:30, haitaol1 wrote: > On 2014/08/11 21:12:21, maniscalco wrote: > > On 2014/08/11 ...
6 years, 4 months ago (2014-08-11 22:00:16 UTC) #6
haitaol1
On 2014/08/11 22:00:16, maniscalco wrote: > On 2014/08/11 21:57:30, haitaol1 wrote: > > On 2014/08/11 ...
6 years, 4 months ago (2014-08-11 22:20:08 UTC) #7
Nicolas Zea
Couple more comments https://codereview.chromium.org/455023003/diff/20001/sync/internal_api/test/test_internal_components_factory.cc File sync/internal_api/test/test_internal_components_factory.cc (right): https://codereview.chromium.org/455023003/diff/20001/sync/internal_api/test/test_internal_components_factory.cc#newcode62 sync/internal_api/test/test_internal_components_factory.cc:62: CHECK_EQ(expected_storage_, storage); I prefer keeping the ...
6 years, 4 months ago (2014-08-13 20:32:05 UTC) #8
haitaol1
https://codereview.chromium.org/455023003/diff/20001/sync/internal_api/test/test_internal_components_factory.cc File sync/internal_api/test/test_internal_components_factory.cc (right): https://codereview.chromium.org/455023003/diff/20001/sync/internal_api/test/test_internal_components_factory.cc#newcode62 sync/internal_api/test/test_internal_components_factory.cc:62: CHECK_EQ(expected_storage_, storage); On 2014/08/13 20:32:05, Nicolas Zea wrote: > ...
6 years, 4 months ago (2014-08-14 01:30:35 UTC) #9
Nicolas Zea
lgtm
6 years, 4 months ago (2014-08-14 19:43:49 UTC) #10
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 4 months ago (2014-08-14 20:22:04 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/455023003/40001
6 years, 4 months ago (2014-08-14 20:23:14 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 4 months ago (2014-08-14 21:41:22 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (40001) as 289709
6 years, 4 months ago (2014-08-14 22:10:50 UTC) #14
miu
A revert of this CL (patchset #3) has been created in https://codereview.chromium.org/477813002/ by miu@chromium.org. The ...
6 years, 4 months ago (2014-08-14 23:05:24 UTC) #15
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 4 months ago (2014-08-14 23:33:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/455023003/60001
6 years, 4 months ago (2014-08-14 23:37:56 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-15 05:43:36 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 14:24:48 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (60001) as 289840

Powered by Google App Engine
This is Rietveld 408576698