Chromium Code Reviews| 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..f37d095716907e0f2ed9ce4cc82f01b81b44c37c 100644 |
| --- a/chrome/browser/chromeos/login/webui_login_display.cc |
| +++ b/chrome/browser/chromeos/login/webui_login_display.cc |
| @@ -141,6 +141,29 @@ 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); |
| +} |
| + |
| +// Set the authentication type to be used on the lock screen. |
|
Nikita (slow)
2014/02/20 15:12:18
nit: Comment can be dropped here.
Tim Song
2014/02/20 22:14:01
Done.
|
| +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) { |