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

Issue 2485773003: [Sync] Ensure unready types' state is updated before every reconfiguration (Closed)

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

Description

[Sync] Ensure unready types' state is updated before every reconfiguration Problematic scenario involves one unready datatype: - Perform normal configuration. - Call ResetDataTypeErrors() - Trigger reconfiguration through failure of some other datatype. In this scenario DataTypeStatusTable::unready_errors_ is empty and ModelAssociationManager attempts to call LoadModels for unready type. In this change I move code to update unready_errors_ so it gets executed in reconfiguration codepath as well as normal configure. R=zea@chromium.org BUG=661817 Committed: https://crrev.com/f09651efa84e17b879e82400422f4cfa87738ac3 Cr-Commit-Position: refs/heads/master@{#430843}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address comment from Nicolas. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -15 lines) Patch
M components/sync/driver/data_type_manager_impl.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/driver/data_type_manager_impl.cc View 1 3 chunks +28 lines, -15 lines 0 comments Download
M components/sync/driver/data_type_manager_impl_unittest.cc View 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
pavely
4 years, 1 month ago (2016-11-08 23:29:01 UTC) #2
Nicolas Zea
lgtm https://codereview.chromium.org/2485773003/diff/1/components/sync/driver/data_type_manager_impl.cc File components/sync/driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/2485773003/diff/1/components/sync/driver/data_type_manager_impl.cc#newcode323 components/sync/driver/data_type_manager_impl.cc:323: void DataTypeManagerImpl::AdjustUnreadyTypeErrors( nit: maybe call this UpdateUnreadyTypeErrors, rather ...
4 years, 1 month ago (2016-11-09 00:38:22 UTC) #4
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/2485773003/10001
4 years, 1 month ago (2016-11-09 01:30:38 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:10001)
4 years, 1 month ago (2016-11-09 03:24:51 UTC) #8
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 03:28:56 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f09651efa84e17b879e82400422f4cfa87738ac3
Cr-Commit-Position: refs/heads/master@{#430843}

Powered by Google App Engine
This is Rietveld 408576698