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

Unified Diff: chrome/browser/ui/webui/options/personal_options_handler.cc

Issue 8624004: Chromeos: Only set email text if there is a logged in user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/options/personal_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/personal_options_handler.cc b/chrome/browser/ui/webui/options/personal_options_handler.cc
index 10fcf2a5930920a47a69c429e893166827024d21..2a93848022bfe95b64619b3c30d42c18f0920a09 100644
--- a/chrome/browser/ui/webui/options/personal_options_handler.cc
+++ b/chrome/browser/ui/webui/options/personal_options_handler.cc
@@ -202,8 +202,9 @@ void PersonalOptionsHandler::GetLocalizedValues(
l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX));
localized_strings->SetString("changePicture",
l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE));
- localized_strings->SetString("userEmail",
- chromeos::UserManager::Get()->logged_in_user().email());
+ if (chromeos::UserManager::Get()->user_is_logged_in())
zel 2011/11/21 23:04:18 {} missing
+ localized_strings->SetString("userEmail",
+ chromeos::UserManager::Get()->logged_in_user().email());
#endif
}
« 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