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

Issue 10167017: Fix some migration-related bugs (Closed)

Created:
8 years, 8 months ago by rlarocque
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -46 lines) Patch
M chrome/browser/sync/backend_migrator.h View 1 2 5 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/sync/backend_migrator.cc View 1 2 4 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/sync/backend_migrator_unittest.cc View 1 2 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/sync/test/integration/migration_errors_test.cc View 3 chunks +11 lines, -5 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rlarocque
8 years, 8 months ago (2012-04-20 21:45:04 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/10167017/diff/2001/chrome/browser/sync/profile_sync_service.h File chrome/browser/sync/profile_sync_service.h (right): http://codereview.chromium.org/10167017/diff/2001/chrome/browser/sync/profile_sync_service.h#newcode300 chrome/browser/sync/profile_sync_service.h:300: void StartSyncingWithServer(); We can't expose this through here. Any ...
8 years, 8 months ago (2012-04-20 22:38:09 UTC) #2
rlarocque
http://codereview.chromium.org/10167017/diff/2001/chrome/browser/sync/profile_sync_service.h File chrome/browser/sync/profile_sync_service.h (right): http://codereview.chromium.org/10167017/diff/2001/chrome/browser/sync/profile_sync_service.h#newcode300 chrome/browser/sync/profile_sync_service.h:300: void StartSyncingWithServer(); On 2012/04/20 22:38:09, timsteele wrote: > We ...
8 years, 8 months ago (2012-04-20 22:45:08 UTC) #3
rlarocque
On 2012/04/20 22:45:08, rlarocque wrote: > http://codereview.chromium.org/10167017/diff/2001/chrome/browser/sync/profile_sync_service.h > File chrome/browser/sync/profile_sync_service.h (right): > > http://codereview.chromium.org/10167017/diff/2001/chrome/browser/sync/profile_sync_service.h#newcode300 > ...
8 years, 8 months ago (2012-04-21 00:26:27 UTC) #4
tim (not reviewing)
On 2012/04/21 00:26:27, rlarocque wrote: > On 2012/04/20 22:45:08, rlarocque wrote: > > > http://codereview.chromium.org/10167017/diff/2001/chrome/browser/sync/profile_sync_service.h ...
8 years, 8 months ago (2012-04-21 00:37:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10167017/8001
8 years, 8 months ago (2012-04-23 18:21:59 UTC) #6
commit-bot: I haz the power
8 years, 8 months ago (2012-04-23 19:44:13 UTC) #7
Change committed as 133498

Powered by Google App Engine
This is Rietveld 408576698