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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.cc

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some bugfixes. Created 7 years, 10 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/ui/webui/ntp/ntp_login_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
index ab788a1e6010a5d9ca332270efaa3f75ac4767f1..94a4ca2f6a3783c6ac23bcaf4c6ed239fd997f5b 100644
--- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
@@ -250,7 +250,8 @@ bool NTPLoginHandler::ShouldShow(Profile* profile) {
// UI and the avatar menu don't exist on that platform.
return false;
#else
- return !profile->IsOffTheRecord();
+ return !profile->IsOffTheRecord() &&
+ profile->GetOriginalProfile()->IsSigninAllowed();
Andrew T Wilson (Slow) 2013/02/04 15:41:48 Probably don't need to call GetOriginalProfile() h
Adrian Kuegel 2013/02/05 10:55:15 True, this is not necessary. I removed it, now it
#endif
}

Powered by Google App Engine
This is Rietveld 408576698