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

Unified Diff: chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc

Issue 1454153002: Revert of This CL replaces e-mail with AccountId on user selection screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc
index 2cd46ed585f5beebb4fa1d199da9f86e10d6771e..18c0ac30d71253997b2b4a0b93dcbc8711f41c2f 100644
--- a/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc
@@ -37,38 +37,38 @@
model_->SendUserList();
}
-void UserBoardScreenHandler::HandleHardlockPod(const AccountId& account_id) {
+void UserBoardScreenHandler::HandleHardlockPod(const std::string& user_id) {
CHECK(model_);
- model_->HardLockPod(account_id);
+ model_->HardLockPod(user_id);
}
-void UserBoardScreenHandler::HandleAttemptUnlock(const AccountId& account_id) {
+void UserBoardScreenHandler::HandleAttemptUnlock(const std::string& user_id) {
CHECK(model_);
- model_->AttemptEasyUnlock(account_id);
+ model_->AttemptEasyUnlock(user_id);
}
void UserBoardScreenHandler::HandleRecordClickOnLockIcon(
- const AccountId& account_id) {
+ const std::string& user_id) {
CHECK(model_);
- model_->RecordClickOnLockIcon(account_id);
+ model_->RecordClickOnLockIcon(user_id);
}
//----------------- API
void UserBoardScreenHandler::SetPublicSessionDisplayName(
- const AccountId& account_id,
+ const std::string& user_id,
const std::string& display_name) {
- CallJS("login.AccountPickerScreen.setPublicSessionDisplayName", account_id,
+ CallJS("login.AccountPickerScreen.setPublicSessionDisplayName", user_id,
display_name);
}
void UserBoardScreenHandler::SetPublicSessionLocales(
- const AccountId& account_id,
+ const std::string& user_id,
scoped_ptr<base::ListValue> locales,
const std::string& default_locale,
bool multiple_recommended_locales) {
- CallJS("login.AccountPickerScreen.setPublicSessionLocales", account_id,
- *locales, default_locale, multiple_recommended_locales);
+ CallJS("login.AccountPickerScreen.setPublicSessionLocales", user_id, *locales,
+ default_locale, multiple_recommended_locales);
}
void UserBoardScreenHandler::ShowBannerMessage(const base::string16& message) {
@@ -76,21 +76,20 @@
}
void UserBoardScreenHandler::ShowUserPodCustomIcon(
- const AccountId& account_id,
+ const std::string& user_id,
const base::DictionaryValue& icon) {
- CallJS("login.AccountPickerScreen.showUserPodCustomIcon", account_id, icon);
+ CallJS("login.AccountPickerScreen.showUserPodCustomIcon", user_id, icon);
}
-void UserBoardScreenHandler::HideUserPodCustomIcon(
- const AccountId& account_id) {
- CallJS("login.AccountPickerScreen.hideUserPodCustomIcon", account_id);
+void UserBoardScreenHandler::HideUserPodCustomIcon(const std::string& user_id) {
+ CallJS("login.AccountPickerScreen.hideUserPodCustomIcon", user_id);
}
void UserBoardScreenHandler::SetAuthType(
- const AccountId& account_id,
+ const std::string& user_id,
proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type,
const base::string16& initial_value) {
- CallJS("login.AccountPickerScreen.setAuthType", account_id,
+ CallJS("login.AccountPickerScreen.setAuthType", user_id,
static_cast<int>(auth_type), base::StringValue(initial_value));
}

Powered by Google App Engine
This is Rietveld 408576698