diff options
-rw-r--r-- | chrome/browser/extensions/extension_tabs_module.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc index 6a9c86b..6912e25 100644 --- a/chrome/browser/extensions/extension_tabs_module.cc +++ b/chrome/browser/extensions/extension_tabs_module.cc @@ -263,7 +263,8 @@ bool GetCurrentWindowFunction::RunImpl() { } bool GetLastFocusedWindowFunction::RunImpl() { - Browser* browser = BrowserList::GetLastActiveWithProfile(profile()); + Browser* browser = BrowserList::FindBrowserWithType( + profile(), Browser::TYPE_ANY, include_incognito()); if (!browser) { error_ = keys::kNoLastFocusedWindowError; return false; |