|
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
Total comments: 2
Total comments: 4
|
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
|
Total messages: 8 (0 generated)
|