| 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 acdefbaa24fc86cbe8ceaecdcadce613d759b717..0896ae165eb871623ed7eede91405f8cd255dd96 100644
|
| --- a/chrome/browser/sync/profile_sync_components_factory_impl.cc
|
| +++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc
|
| @@ -19,6 +19,8 @@
|
| #include "chrome/browser/search_engines/template_url_service_factory.h"
|
| #include "chrome/browser/signin/signin_manager.h"
|
| #include "chrome/browser/signin/signin_manager_factory.h"
|
| +#include "chrome/browser/spellchecker/spellcheck_factory.h"
|
| +#include "chrome/browser/spellchecker/spellcheck_service.h"
|
| #include "chrome/browser/sync/glue/app_notification_data_type_controller.h"
|
| #include "chrome/browser/sync/glue/autofill_data_type_controller.h"
|
| #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h"
|
| @@ -223,6 +225,13 @@ void ProfileSyncComponentsFactoryImpl::RegisterDesktopDataTypes(
|
| new UIDataTypeController(
|
| syncer::HISTORY_DELETE_DIRECTIVES, this, profile_, pss));
|
| }
|
| +
|
| + // Dictionary sync is disabled by default. Register only if explicitly
|
| + // enabled.
|
| + if (command_line_->HasSwitch(switches::kEnableSyncDictionary)) {
|
| + pss->RegisterDataTypeController(
|
| + new UIDataTypeController(syncer::DICTIONARY, this, profile_, pss));
|
| + }
|
| }
|
|
|
| DataTypeManager* ProfileSyncComponentsFactoryImpl::CreateDataTypeManager(
|
| @@ -297,6 +306,9 @@ base::WeakPtr<syncer::SyncableService> ProfileSyncComponentsFactoryImpl::
|
| profile_, Profile::EXPLICIT_ACCESS);
|
| return history ? history->AsWeakPtr() : base::WeakPtr<HistoryService>();
|
| }
|
| + case syncer::DICTIONARY:
|
| + return SpellcheckServiceFactory::GetForProfile(profile_)->
|
| + GetCustomDictionary()->AsWeakPtr();
|
| default:
|
| // The following datatypes still need to be transitioned to the
|
| // syncer::SyncableService API:
|
|
|