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 7d796f0730d004b38714814b509ee1c80dbced4f..c0254c2b054fe0a483574d43edb5e1d2ee24f0f6 100644 |
--- a/chrome/browser/sync/profile_sync_components_factory_impl.cc |
+++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc |
@@ -21,8 +21,6 @@ |
#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/autofill_data_type_controller.h" |
#include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" |
#include "chrome/browser/sync/glue/bookmark_change_processor.h" |
@@ -76,6 +74,11 @@ |
#include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h" |
#endif |
+#if defined(ENABLE_SPELLCHECK) |
+#include "chrome/browser/spellchecker/spellcheck_factory.h" |
+#include "chrome/browser/spellchecker/spellcheck_service.h" |
+#endif |
+ |
using browser_sync::AutofillDataTypeController; |
using browser_sync::AutofillProfileDataTypeController; |
using browser_sync::BookmarkChangeProcessor; |
@@ -379,9 +382,11 @@ base::WeakPtr<syncer::SyncableService> ProfileSyncComponentsFactoryImpl:: |
: base::WeakPtr<syncer::SyncableService>(); |
} |
#endif |
+#if defined(ENABLE_SPELLCHECK) |
case syncer::DICTIONARY: |
return SpellcheckServiceFactory::GetForProfile(profile_)-> |
GetCustomDictionary()->AsWeakPtr(); |
+#endif |
case syncer::FAVICON_IMAGES: |
case syncer::FAVICON_TRACKING: { |
browser_sync::SessionModelAssociator* model_associator = |