DescriptionFix some migration-related bugs
This change treat jobs that receive MIGRATION_DONE response from the
server as a failure, so that they will be retried. Otherwise we could
end up unnecessarily dropping nudges or notifications. This was already
effectively the case for jobs that committed items for types that were
being migrated due to a detail of the way ProcessCommitResponse errors
were detected.
This also modifies the handling of configuration done notifications in
the ProfileSyncService so it no longer causes the scheduler to briefly
transition back to NORMAL mode in mid-migration. The old way of doing
things would often lead to pending nudges being executed while the
migration was still in progress.
Finally, this change reroutes the backend migrator's OnConfigureDone
callback thorugh ProfileSyncService. Now we can guarantee that the
ProfileSyncService's callbck gets executed first. This should be less
brittle than hoping that the notifications arrive in a certain order.
BUG=123954, 94882
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133498
Patch Set 1 #Patch Set 2 : Fix unit tests #
Total comments: 4
Patch Set 3 : Review changes #
Messages
Total messages: 7 (0 generated)
|