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

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

Issue 9241029: sync: Pass ProfileSyncService to NonFrontendDataTypeController's ctor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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_components_factory_impl.cc
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl.cc b/chrome/browser/sync/profile_sync_components_factory_impl.cc
index b9d4f76af9c223051b0eb30380472f87780bb820..3badc234f1c4df559474b4deb1445fdca5142ce8 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc
@@ -121,7 +121,7 @@ void ProfileSyncComponentsFactoryImpl::RegisterDataTypes(
// disabled.
if (!command_line_->HasSwitch(switches::kDisableSyncAutofill)) {
pss->RegisterDataTypeController(
- new AutofillDataTypeController(this, profile_));
+ new AutofillDataTypeController(this, profile_, pss));
}
// Bookmark sync is enabled by default. Register unless explicitly
@@ -142,7 +142,7 @@ void ProfileSyncComponentsFactoryImpl::RegisterDataTypes(
// disabled.
if (!command_line_->HasSwitch(switches::kDisableSyncPasswords)) {
pss->RegisterDataTypeController(
- new PasswordDataTypeController(this, profile_));
+ new PasswordDataTypeController(this, profile_, pss));
}
// Preference sync is enabled by default. Register unless explicitly
@@ -163,7 +163,7 @@ void ProfileSyncComponentsFactoryImpl::RegisterDataTypes(
if (!profile_->GetPrefs()->GetBoolean(prefs::kSavingBrowserHistoryDisabled) &&
!command_line_->HasSwitch(switches::kDisableSyncTypedUrls)) {
pss->RegisterDataTypeController(
- new TypedUrlDataTypeController(this, profile_));
+ new TypedUrlDataTypeController(this, profile_, pss));
}
// Search Engine sync is enabled by default. Register only if explicitly
@@ -193,7 +193,7 @@ void ProfileSyncComponentsFactoryImpl::RegisterDataTypes(
if (!command_line_->HasSwitch(switches::kDisableSyncAutofillProfile)) {
pss->RegisterDataTypeController(
- new AutofillProfileDataTypeController(this, profile_));
+ new AutofillProfileDataTypeController(this, profile_, pss));
}
// App notifications sync is enabled by default. Register only if
« no previous file with comments | « chrome/browser/sync/glue/typed_url_data_type_controller.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698