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

Unified Diff: chrome/browser/chromeos/login/webui_login_display.cc

Issue 168813002: Refactor user pods to use authType property for distinct authentication modes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ScreenLockerTest Created 6 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/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) {
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_display.h ('k') | chrome/browser/chromeos/login/webui_screen_locker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698