summaryrefslogtreecommitdiffstats
path: root/apps/shell_window_geometry_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apps/shell_window_geometry_cache.cc')
-rw-r--r--apps/shell_window_geometry_cache.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/shell_window_geometry_cache.cc b/apps/shell_window_geometry_cache.cc
index 8be592f..09ad3b3 100644
--- a/apps/shell_window_geometry_cache.cc
+++ b/apps/shell_window_geometry_cache.cc
@@ -15,6 +15,7 @@
#include "content/public/browser/notification_types.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_prefs_factory.h"
+#include "extensions/browser/extensions_browser_client.h"
#include "extensions/common/extension.h"
namespace {
@@ -319,7 +320,8 @@ bool ShellWindowGeometryCache::Factory::ServiceIsNULLWhileTesting() const {
content::BrowserContext*
ShellWindowGeometryCache::Factory::GetBrowserContextToUse(
content::BrowserContext* context) const {
- return chrome::GetBrowserContextRedirectedInIncognito(context);
+ return extensions::ExtensionsBrowserClient::Get()->
+ GetOriginalContext(context);
}
void ShellWindowGeometryCache::AddObserver(Observer* observer) {