Index: chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc |
diff --git a/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc b/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc |
index 1097342f036160403abe83aaac70411e0870b96c..a85ccc4ae1e2c59ca494bbee91149e5cdf2704c7 100644 |
--- a/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc |
+++ b/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/ui/webui/ntp/app_resource_cache_factory.h" |
+#include "chrome/browser/profiles/incognito_helpers.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_dependency_manager.h" |
#include "chrome/browser/themes/theme_service_factory.h" |
@@ -35,6 +36,7 @@ ProfileKeyedService* AppResourceCacheFactory::BuildServiceInstanceFor( |
return new NTPResourceCache(static_cast<Profile*>(profile)); |
} |
-bool AppResourceCacheFactory::ServiceRedirectedInIncognito() const { |
- return true; |
+content::BrowserContext* AppResourceCacheFactory::GetBrowserContextToUse( |
+ content::BrowserContext* context) const { |
+ return chrome::GetBrowserContextRedirectedInIncognito(context); |
} |