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

Issue 2580033002: [Sync] Ensure that CONFIGURE_CLEAN types get unapplied before configuration (Closed)

Created:
4 years ago by pavely
Modified:
4 years ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Ensure that CONFIGURE_CLEAN types get unapplied before configuration The issue is that in SyncBackendHostImpl::ConfigureDataTypes types in clean_first_types are excluded from types_to_purge and therefore are not being unapplied as part of PurgeDisabledTypes call. This affects purgiong types with persistence error as well as catchup phase of enabling passphrase encryption. I'm adjusted logic to include these types in unapply_types and added test for this scenario. BUG=675036 R=zea@chromium.org Committed: https://crrev.com/483a408c43aa945fcafef315fb55ed6d3a00c663 Cr-Commit-Position: refs/heads/master@{#439297}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Total comments: 1

Patch Set 3 : Adjusted comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -90 lines) Patch
M components/sync/driver/glue/sync_backend_host_impl.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl_unittest.cc View 1 20 chunks +93 lines, -76 lines 0 comments Download
M components/sync/engine/fake_sync_manager.h View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M components/sync/engine/fake_sync_manager.cc View 1 3 chunks +17 lines, -8 lines 0 comments Download
M components/sync/test/engine/test_syncable_utils.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
pavely
4 years ago (2016-12-16 22:01:49 UTC) #3
Nicolas Zea
https://codereview.chromium.org/2580033002/diff/1/components/sync/driver/glue/sync_backend_host_impl.cc File components/sync/driver/glue/sync_backend_host_impl.cc (right): https://codereview.chromium.org/2580033002/diff/1/components/sync/driver/glue/sync_backend_host_impl.cc#newcode285 components/sync/driver/glue/sync_backend_host_impl.cc:285: ModelTypeSet::All(), Difference(current_types, clean_first_types)); I think it might be simpler ...
4 years ago (2016-12-16 22:08:42 UTC) #4
pavely
https://codereview.chromium.org/2580033002/diff/1/components/sync/driver/glue/sync_backend_host_impl.cc File components/sync/driver/glue/sync_backend_host_impl.cc (right): https://codereview.chromium.org/2580033002/diff/1/components/sync/driver/glue/sync_backend_host_impl.cc#newcode285 components/sync/driver/glue/sync_backend_host_impl.cc:285: ModelTypeSet::All(), Difference(current_types, clean_first_types)); On 2016/12/16 22:08:42, Nicolas Zea wrote: ...
4 years ago (2016-12-16 23:57:46 UTC) #8
Nicolas Zea
lgtm https://codereview.chromium.org/2580033002/diff/20001/components/sync/engine/fake_sync_manager.h File components/sync/engine/fake_sync_manager.h (right): https://codereview.chromium.org/2580033002/diff/20001/components/sync/engine/fake_sync_manager.h#newcode50 components/sync/engine/fake_sync_manager.h:50: // types. nit: may as well call out ...
4 years ago (2016-12-17 00:18:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2580033002/40001
4 years ago (2016-12-17 01:21:08 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-17 02:37:37 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-17 02:40:17 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/483a408c43aa945fcafef315fb55ed6d3a00c663
Cr-Commit-Position: refs/heads/master@{#439297}

Powered by Google App Engine
This is Rietveld 408576698