Index: chrome/browser/sync/profile_sync_service_factory.cc |
diff --git a/chrome/browser/sync/profile_sync_service_factory.cc b/chrome/browser/sync/profile_sync_service_factory.cc |
index bf4cfbffd702c107a1a92a091d6e9c5382b9a703..cbc4e279a573a4c554bc1238fe6d41db88f48952 100644 |
--- a/chrome/browser/sync/profile_sync_service_factory.cc |
+++ b/chrome/browser/sync/profile_sync_service_factory.cc |
@@ -46,7 +46,9 @@ ProfileSyncServiceFactory::ProfileSyncServiceFactory() |
// destruction order. |
DependsOn(TemplateURLServiceFactory::GetInstance()); |
DependsOn(PersonalDataManagerFactory::GetInstance()); |
+#if defined(ENABLE_THEMES) |
DependsOn(ThemeServiceFactory::GetInstance()); |
+#endif |
DependsOn(GlobalErrorServiceFactory::GetInstance()); |
DependsOn(SigninManagerFactory::GetInstance()); |
DependsOn(PasswordStoreFactory::GetInstance()); |