Index: chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc |
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc |
index a7f71a229b332fa898c8c7c3c58d79b6c24695ee..99e08dde2b010b42caae920dfd9e414193a04b83 100644 |
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc |
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc |
@@ -23,7 +23,9 @@ NTPResourceCacheFactory* NTPResourceCacheFactory::GetInstance() { |
NTPResourceCacheFactory::NTPResourceCacheFactory() |
: ProfileKeyedServiceFactory("NTPResourceCache", |
ProfileDependencyManager::GetInstance()) { |
+#if defined(ENABLE_THEMES) |
DependsOn(ThemeServiceFactory::GetInstance()); |
+#endif |
} |
NTPResourceCacheFactory::~NTPResourceCacheFactory() {} |