| 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 8bd2bab058a658cef8b7149ce1d7b238cf2d61f1..515f3acfb8463da2596c005393b14367b2f93304 100644
|
| --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc
|
| +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/ui/webui/ntp/ntp_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* NTPResourceCacheFactory::BuildServiceInstanceFor(
|
| return new NTPResourceCache(static_cast<Profile*>(profile));
|
| }
|
|
|
| -bool NTPResourceCacheFactory::ServiceRedirectedInIncognito() const {
|
| - return true;
|
| +content::BrowserContext* NTPResourceCacheFactory::GetBrowserContextToUse(
|
| + content::BrowserContext* context) const {
|
| + return chrome::GetBrowserContextRedirectedInIncognito(context);
|
| }
|
|
|