| 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 bb5944578b4a81e1814e5bb0fa9cb05c18ed4aec..669e612ba230a0b40fc7d0a18eba709a52a179c9 100644
|
| --- a/chrome/browser/sync/profile_sync_components_factory_impl.cc
|
| +++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc
|
| @@ -206,6 +206,13 @@ void ProfileSyncComponentsFactoryImpl::RegisterDesktopDataTypes(
|
| if (!command_line_->HasSwitch(switches::kDisableSyncPreferences)) {
|
| pss->RegisterDataTypeController(
|
| new UIDataTypeController(syncer::PREFERENCES, this, profile_, pss));
|
| +
|
| + }
|
| +
|
| + if (!command_line_->HasSwitch(switches::kDisableSyncPriorityPreferences)) {
|
| + pss->RegisterDataTypeController(
|
| + new UIDataTypeController(syncer::PRIORITY_PREFERENCES,
|
| + this, profile_, pss));
|
| }
|
|
|
| #if defined(ENABLE_THEMES)
|
| @@ -302,7 +309,10 @@ base::WeakPtr<syncer::SyncableService> ProfileSyncComponentsFactoryImpl::
|
| switch (type) {
|
| case syncer::PREFERENCES:
|
| return PrefServiceSyncable::FromProfile(
|
| - profile_)->GetSyncableService()->AsWeakPtr();
|
| + profile_)->GetSyncableService(syncer::PREFERENCES)->AsWeakPtr();
|
| + case syncer::PRIORITY_PREFERENCES:
|
| + return PrefServiceSyncable::FromProfile(profile_)->GetSyncableService(
|
| + syncer::PRIORITY_PREFERENCES)->AsWeakPtr();
|
| case syncer::AUTOFILL:
|
| case syncer::AUTOFILL_PROFILE: {
|
| if (!web_data_service_.get())
|
|
|