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

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

Issue 9405035: Implement ephemeral users (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Complete, tested implementation - ready for review. Created 8 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/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 57297c4a51fdf8ce26cea6c768a9f87f9c99fe3a..4cd0c553ca9b365c0ea03371e2aa1906f4fca62a 100644
--- a/chrome/browser/ui/webui/options/personal_options_handler.cc
+++ b/chrome/browser/ui/webui/options/personal_options_handler.cc
@@ -205,6 +205,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("current_user_is_ephemeral",
+ chromeos::UserManager::Get()->current_user_is_ephemeral() ?
+ ASCIIToUTF16("true") : ASCIIToUTF16("false"));
csilv 2012/03/01 02:10:42 Please move this into account_options_handler grou
use bartfab instead 2012/03/01 05:13:59 Done.
if (chromeos::UserManager::Get()->user_is_logged_in()) {
localized_strings->SetString("username",
chromeos::UserManager::Get()->logged_in_user().email());

Powered by Google App Engine
This is Rietveld 408576698