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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 2621083002: Avoid loading the chrome sign-in URLs in incognito (Closed)
Patch Set: Created 3 years, 11 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/ui/webui/chrome_web_ui_controller_factory.cc
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
index 1e46a388594a6fba6f7542de86d2240253021fb8..003c65468276af4e28b3cee70519f1c95bbfebc0 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -535,15 +535,19 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
return &NewWebUI<InspectUI>;
#endif
#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
- if (url.host_piece() == chrome::kChromeUIChromeSigninHost)
+ if (url.host_piece() == chrome::kChromeUIChromeSigninHost &&
+ !profile->IsOffTheRecord())
return &NewWebUI<InlineLoginUI>;
if (url.host_piece() == chrome::kChromeUIMdUserManagerHost)
return &NewWebUI<MDUserManagerUI>;
- if (url.host_piece() == chrome::kChromeUISigninErrorHost)
+ if (url.host_piece() == chrome::kChromeUISigninErrorHost &&
+ !profile->IsOffTheRecord())
return &NewWebUI<SigninErrorUI>;
- if (url.host_piece() == chrome::kChromeUISyncConfirmationHost)
+ if (url.host_piece() == chrome::kChromeUISyncConfirmationHost &&
+ !profile->IsOffTheRecord())
return &NewWebUI<SyncConfirmationUI>;
- if (url.host_piece() == chrome::kChromeUISigninEmailConfirmationHost)
+ if (url.host_piece() == chrome::kChromeUISigninEmailConfirmationHost &&
+ !profile->IsOffTheRecord())
return &NewWebUI<SigninEmailConfirmationUI>;
if (url.host_piece() == chrome::kChromeUIWelcomeHost)
return &NewWebUI<WelcomeUI>;
« 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