Index: chrome/browser/sync/profile_sync_service.cc |
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc |
index c60ec4614c27492b8a95d7f75b3c5b7af1a47224..d918c9d95e17cb7ad15e17369571ef75ba79d81a 100644 |
--- a/chrome/browser/sync/profile_sync_service.cc |
+++ b/chrome/browser/sync/profile_sync_service.cc |
@@ -1013,6 +1013,14 @@ void ProfileSyncService::PostBackendInitialization() { |
SetSyncSetupCompleted(); |
} |
+ // Give the DataTypeControllers a handle to the now initialized backend |
+ // as a UserShare. |
+ for (DataTypeController::TypeMap::iterator it = |
haitaol1
2014/06/05 22:07:04
This should be called at the beginning to set user
tim (not reviewing)
2014/06/06 18:52:53
Uh oh! Good catch. Are there backup/restore tests
haitaol1
2014/06/06 20:44:33
The integration test I'm submitting should be able
|
+ directory_data_type_controllers_.begin(); |
+ it != directory_data_type_controllers_.end(); ++it) { |
+ it->second->OnUserShareReady(GetUserShare()); |
+ } |
+ |
// Check HasSyncSetupCompleted() before NotifyObservers() to avoid spurious |
// data type configuration because observer may flag setup as complete and |
// trigger data type configuration. |