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

Unified Diff: chrome/browser/dom_ui/dom_ui_factory.cc

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 4 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
Index: chrome/browser/dom_ui/dom_ui_factory.cc
diff --git a/chrome/browser/dom_ui/dom_ui_factory.cc b/chrome/browser/dom_ui/dom_ui_factory.cc
index 251f64634bcd1b2c571f574791071cbc74cae6a3..dc9eec7e92ec9b8d6501caae767cf1a8277ddb73 100644
--- a/chrome/browser/dom_ui/dom_ui_factory.cc
+++ b/chrome/browser/dom_ui/dom_ui_factory.cc
@@ -61,7 +61,7 @@ DOMUI* NewDOMUI<ExtensionDOMUI>(TabContents* contents, const GURL& url) {
ExtensionsService* service = contents->profile()->GetExtensionsService();
bool valid_extension =
(service && service->GetExtensionById(url.host(), false));
- if (valid_extension && !contents->profile()->IsOffTheRecord())
+ if (valid_extension)
return new ExtensionDOMUI(contents);
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698