| Index: chrome/browser/chromeos/login/webui_login_display.cc
|
| diff --git a/chrome/browser/chromeos/login/webui_login_display.cc b/chrome/browser/chromeos/login/webui_login_display.cc
|
| index e192486716e3d926e3b1a07df4bf88b8a0981ad7..a0582eeb331e2e3ba7da400e5e7881281615e5a3 100644
|
| --- a/chrome/browser/chromeos/login/webui_login_display.cc
|
| +++ b/chrome/browser/chromeos/login/webui_login_display.cc
|
| @@ -141,6 +141,28 @@ void WebUILoginDisplay::ShowUserPodButton(
|
| webui_handler_->ShowUserPodButton(username, iconURL, click_callback);
|
| }
|
|
|
| +void WebUILoginDisplay::HideUserPodButton(const std::string& username) {
|
| + if (!webui_handler_)
|
| + return;
|
| + webui_handler_->HideUserPodButton(username);
|
| +}
|
| +
|
| +void WebUILoginDisplay::SetAuthType(const std::string& username,
|
| + AuthType auth_type,
|
| + const std::string& initial_value) {
|
| + if (!webui_handler_)
|
| + return;
|
| + webui_handler_->SetAuthType(username, auth_type, initial_value);
|
| +}
|
| +
|
| +LoginDisplay::AuthType WebUILoginDisplay::GetAuthType(
|
| + const std::string& username) const {
|
| + // Return default auth type if WebUI hander is not ready.
|
| + if (!webui_handler_)
|
| + return OFFLINE_PASSWORD;
|
| + return webui_handler_->GetAuthType(username);
|
| +}
|
| +
|
| void WebUILoginDisplay::ShowError(int error_msg_id,
|
| int login_attempts,
|
| HelpAppLauncher::HelpTopic help_topic_id) {
|
|
|