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

Issue 10830100: Fix SyncManager initialization failure crash. (Closed)

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

Description

Fix SyncManager initialization failure crash. This crash was introduced in r148926, which changes SyncManager init behaviour. Previously, the SyncManager would end up with a valid SyncScheduler regardless of whether or not the initialization failed. This SyncScheduler would later play an important role in shutting down the syncer. Without a scheduler, the shutdown process crashes. The ProfileSyncServiceTest.CorruptDatabase test simulates the scenario we fail to load a sync directory. This will result in a SyncManager initialization failure. It is intended to test that this failure is handled by the ProfileSyncService, SyncBackendHost and SyncManager. BUG=139723 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149306

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update #

Total comments: 4

Patch Set 3 : Add virtual destructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -71 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 chunks +18 lines, -8 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 7 chunks +15 lines, -26 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 5 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 7 chunks +8 lines, -10 lines 0 comments Download
M sync/internal_api/public/test/test_internal_components_factory.h View 1 chunk +10 lines, -8 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M sync/internal_api/test/test_internal_components_factory.cc View 2 chunks +14 lines, -7 lines 0 comments Download
M sync/sync.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A sync/syncable/invalid_directory_backing_store.h View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A sync/syncable/invalid_directory_backing_store.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
rlarocque
8 years, 4 months ago (2012-07-31 18:42:32 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/10830100/diff/1/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10830100/diff/1/chrome/browser/sync/glue/sync_backend_host.cc#newcode852 chrome/browser/sync/glue/sync_backend_host.cc:852: sync_manager_.reset(); The main danger with this is that SyncManager ...
8 years, 4 months ago (2012-07-31 19:40:26 UTC) #2
rlarocque
Updated in response to Tim's comments. +Fred: Do you know when the notifier starts posting ...
8 years, 4 months ago (2012-07-31 20:14:07 UTC) #3
tim (not reviewing)
I'm not 100% sure when the notifier starts posting to the sync loop, so yeah ...
8 years, 4 months ago (2012-07-31 21:14:36 UTC) #4
akalin
On 2012/07/31 20:14:07, rlarocque wrote: > Updated in response to Tim's comments. > > +Fred: ...
8 years, 4 months ago (2012-07-31 21:34:18 UTC) #5
rlarocque
http://codereview.chromium.org/10830100/diff/1012/sync/syncable/invalid_directory_backing_store.h File sync/syncable/invalid_directory_backing_store.h (right): http://codereview.chromium.org/10830100/diff/1012/sync/syncable/invalid_directory_backing_store.h#newcode16 sync/syncable/invalid_directory_backing_store.h:16: InvalidDirectoryBackingStore(); On 2012/07/31 21:14:36, timsteele wrote: > virtual dtor ...
8 years, 4 months ago (2012-07-31 21:36:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10830100/7002
8 years, 4 months ago (2012-07-31 21:36:47 UTC) #7
commit-bot: I haz the power
8 years, 4 months ago (2012-07-31 23:01:00 UTC) #8
Change committed as 149306

Powered by Google App Engine
This is Rietveld 408576698