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

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

Issue 1013463004: NTP checks for guest sessions before updating the login bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/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 c53b1ba7873a880000f211d1f8102d4f53c46b1e..98963923a60d7c3bc872c51eaae36cc6703a1081 100644
--- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
@@ -173,6 +173,9 @@ void NTPLoginHandler::HandleShowAdvancedLoginUI(const base::ListValue* args) {
void NTPLoginHandler::UpdateLogin() {
Profile* profile = Profile::FromWebUI(web_ui());
+ if (profile->IsGuestSession())
+ return;
+
std::string username =
SigninManagerFactory::GetForProfile(profile)->GetAuthenticatedUsername();
Dan Beam 2015/03/18 17:08:09 auto* factory = SigninManagerFactory::GetForProfil
Mike Lerman 2015/03/18 19:23:47 Done.
« 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