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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/personal_options_handler.h" 5 #include "chrome/browser/ui/webui/options/personal_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 localized_strings->SetString("syncsessions", 198 localized_strings->SetString("syncsessions",
199 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS)); 199 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS));
200 200
201 #if defined(OS_CHROMEOS) 201 #if defined(OS_CHROMEOS)
202 localized_strings->SetString("account", 202 localized_strings->SetString("account",
203 l10n_util::GetStringUTF16(IDS_OPTIONS_PERSONAL_ACCOUNT_GROUP_NAME)); 203 l10n_util::GetStringUTF16(IDS_OPTIONS_PERSONAL_ACCOUNT_GROUP_NAME));
204 localized_strings->SetString("enableScreenlock", 204 localized_strings->SetString("enableScreenlock",
205 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX)); 205 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX));
206 localized_strings->SetString("changePicture", 206 localized_strings->SetString("changePicture",
207 l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE)); 207 l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE));
208 localized_strings->SetString("current_user_is_ephemeral",
209 chromeos::UserManager::Get()->current_user_is_ephemeral() ?
210 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.
208 if (chromeos::UserManager::Get()->user_is_logged_in()) { 211 if (chromeos::UserManager::Get()->user_is_logged_in()) {
209 localized_strings->SetString("username", 212 localized_strings->SetString("username",
210 chromeos::UserManager::Get()->logged_in_user().email()); 213 chromeos::UserManager::Get()->logged_in_user().email());
211 } 214 }
212 #endif 215 #endif
213 } 216 }
214 217
215 void PersonalOptionsHandler::RegisterMessages() { 218 void PersonalOptionsHandler::RegisterMessages() {
216 web_ui()->RegisterMessageCallback( 219 web_ui()->RegisterMessageCallback(
217 "themesReset", 220 "themesReset",
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 profile_info_list.Append(profile_value); 437 profile_info_list.Append(profile_value);
435 } 438 }
436 439
437 web_ui()->CallJavascriptFunction("PersonalOptions.setProfilesInfo", 440 web_ui()->CallJavascriptFunction("PersonalOptions.setProfilesInfo",
438 profile_info_list); 441 profile_info_list);
439 } 442 }
440 443
441 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { 444 void PersonalOptionsHandler::CreateProfile(const ListValue* args) {
442 ProfileManager::CreateMultiProfileAsync(); 445 ProfileManager::CreateMultiProfileAsync();
443 } 446 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698