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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 1314903004: Sync: Refactoring DataTypeController to make the design shareable with USS datatypes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing build on Android Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 4fce2378ad6601ab902f9c11c9571341bf5b53bb..e95a5adb9ef87a8b35be013824d538bc964286f4 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -1155,14 +1155,6 @@ void ProfileSyncService::OnBackendInitialized(
DVLOG(1) << "Setting preferred types for non-blocking DTM";
non_blocking_data_type_manager_.SetPreferredTypes(GetPreferredDataTypes());
- // Give the DataTypeControllers a handle to the now initialized backend
- // as a UserShare.
- for (DataTypeController::TypeMap::iterator it =
- directory_data_type_controllers_.begin();
- it != directory_data_type_controllers_.end(); ++it) {
- it->second->OnUserShareReady(GetUserShare());
- }
-
if (backend_mode_ == BACKUP || backend_mode_ == ROLLBACK)
ConfigureDataTypeManager();
else

Powered by Google App Engine
This is Rietveld 408576698