Chromium Code Reviews| 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 |
| } |