Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: chrome/browser/extensions/extension_tab_util.cc

Issue 2864213002: [MD Bookmarks] Fix crash when opening a chrome-extension:// URL. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_tab_util.cc
diff --git a/chrome/browser/extensions/extension_tab_util.cc b/chrome/browser/extensions/extension_tab_util.cc
index ffaad663823c3a21a005a7035048a64def64531b..2d4a5817fbe94c77282359d1f50cfd6c8280c2a8 100644
--- a/chrome/browser/extensions/extension_tab_util.cc
+++ b/chrome/browser/extensions/extension_tab_util.cc
@@ -215,7 +215,8 @@ base::DictionaryValue* ExtensionTabUtil::OpenTab(
// We can't load extension URLs into incognito windows unless the extension
// uses split mode. Special case to fall back to a tabbed window.
if (url.SchemeIs(kExtensionScheme) &&
- !IncognitoInfo::IsSplitMode(function->extension()) &&
+ (!function->extension() ||
benwells 2017/05/22 02:59:31 I would have thought (function->extension &&... wo
calamity 2017/05/22 03:02:32 I think we want to hit the fallback behavior in th
benwells 2017/05/22 05:29:43 OK ... so like !(function->extension() && function
+ !IncognitoInfo::IsSplitMode(function->extension())) &&
browser->profile()->IsOffTheRecord()) {
Profile* profile = browser->profile()->GetOriginalProfile();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698