diff options
Diffstat (limited to 'apps/app_keep_alive_service_factory.cc')
-rw-r--r-- | apps/app_keep_alive_service_factory.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_keep_alive_service_factory.cc b/apps/app_keep_alive_service_factory.cc index dc9e725..c33452b 100644 --- a/apps/app_keep_alive_service_factory.cc +++ b/apps/app_keep_alive_service_factory.cc @@ -7,8 +7,8 @@ #include "apps/app_keep_alive_service.h" #include "apps/app_lifetime_monitor_factory.h" #include "apps/shell_window_registry.h" -#include "chrome/browser/profiles/incognito_helpers.h" #include "components/browser_context_keyed_service/browser_context_dependency_manager.h" +#include "extensions/browser/extensions_browser_client.h" namespace apps { @@ -37,7 +37,8 @@ bool AppKeepAliveServiceFactory::ServiceIsCreatedWithBrowserContext() const { content::BrowserContext* AppKeepAliveServiceFactory::GetBrowserContextToUse( content::BrowserContext* context) const { - return chrome::GetBrowserContextRedirectedInIncognito(context); + return extensions::ExtensionsBrowserClient::Get()-> + GetOriginalContext(context); } bool AppKeepAliveServiceFactory::ServiceIsNULLWhileTesting() const { |