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

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

Issue 6811003: [Sync] Make generic non-frontend thread datatype controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copy paste :( Created 9 years, 8 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_factory_impl.cc
diff --git a/chrome/browser/sync/profile_sync_factory_impl.cc b/chrome/browser/sync/profile_sync_factory_impl.cc
index 430941c93424b01963fdb956f45a9646b7bd7961..64618f254b1f255781121d66e5e975e5fd8373b3 100644
--- a/chrome/browser/sync/profile_sync_factory_impl.cc
+++ b/chrome/browser/sync/profile_sync_factory_impl.cc
@@ -87,7 +87,10 @@ ProfileSyncService* ProfileSyncFactoryImpl::CreateProfileSyncService(
ProfileSyncService* pss = new ProfileSyncService(
this, profile_, cros_user);
+ return pss;
+}
+void ProfileSyncFactoryImpl::RegisterDataTypes(ProfileSyncService* pss) {
// App sync is enabled by default. Register unless explicitly
// disabled.
if (!command_line_->HasSwitch(switches::kDisableSyncApps)) {
@@ -99,7 +102,7 @@ ProfileSyncService* ProfileSyncFactoryImpl::CreateProfileSyncService(
// disabled.
if (!command_line_->HasSwitch(switches::kDisableSyncAutofill)) {
pss->RegisterDataTypeController(
- new AutofillDataTypeController(this, profile_, pss));
+ new AutofillDataTypeController(this, profile_));
}
// Bookmark sync is enabled by default. Register unless explicitly
@@ -120,7 +123,7 @@ ProfileSyncService* ProfileSyncFactoryImpl::CreateProfileSyncService(
// disabled.
if (!command_line_->HasSwitch(switches::kDisableSyncPasswords)) {
pss->RegisterDataTypeController(
- new PasswordDataTypeController(this, profile_, pss));
+ new PasswordDataTypeController(this, profile_));
}
// Preference sync is enabled by default. Register unless explicitly
@@ -140,7 +143,7 @@ ProfileSyncService* ProfileSyncFactoryImpl::CreateProfileSyncService(
// explicitly enabled.
if (command_line_->HasSwitch(switches::kEnableSyncTypedUrls)) {
pss->RegisterDataTypeController(
- new TypedUrlDataTypeController(this, profile_, pss));
+ new TypedUrlDataTypeController(this, profile_));
}
// Session sync is disabled by default. Register only if explicitly
@@ -151,10 +154,9 @@ ProfileSyncService* ProfileSyncFactoryImpl::CreateProfileSyncService(
}
if (!command_line_->HasSwitch(switches::kDisableSyncAutofillProfile)) {
- pss->RegisterDataTypeController(new AutofillProfileDataTypeController(
- this, profile_, pss));
+ pss->RegisterDataTypeController(
+ new AutofillProfileDataTypeController(this, profile_));
}
- return pss;
}
DataTypeManager* ProfileSyncFactoryImpl::CreateDataTypeManager(
« no previous file with comments | « chrome/browser/sync/profile_sync_factory_impl.h ('k') | chrome/browser/sync/profile_sync_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698