Index: chrome/browser/extensions/extension_tabs_module.cc |
diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc |
index ce3a92a05bb6c587a65d181d1317fa128e5117c1..e1a72a1cad702564b92bd52a2edcd97f09096ac4 100644 |
--- a/chrome/browser/extensions/extension_tabs_module.cc |
+++ b/chrome/browser/extensions/extension_tabs_module.cc |
@@ -600,9 +600,10 @@ bool CreateTabFunction::RunImpl() { |
EXTENSION_FUNCTION_VALIDATE(args->GetBoolean(keys::kSelectedKey, |
&selected)); |
- // We can't load extension URLs into incognito windows. Special case to |
- // fall back to a normal window. |
+ // We can't load extension URLs into incognito windows unless the extension |
+ // uses split mode. Special case to fall back to a normal window. |
if (url.SchemeIs(chrome::kExtensionScheme) && |
+ !GetExtension()->incognito_split_mode() && |
browser->profile()->IsOffTheRecord()) { |
Profile* profile = browser->profile()->GetOriginalProfile(); |
browser = BrowserList::FindBrowserWithType(profile, |