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

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

Issue 7461142: [ChromeOS] Assorted WebUI login fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment in #1 Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/webui_login_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/webui_login_display.h
diff --git a/chrome/browser/chromeos/login/webui_login_display.h b/chrome/browser/chromeos/login/webui_login_display.h
index c261a6d24d0b1256d4a7c325889d4f329b97aade..545ea3791dcc76c3bb36f39b9a60fb13263dd74e 100644
--- a/chrome/browser/chromeos/login/webui_login_display.h
+++ b/chrome/browser/chromeos/login/webui_login_display.h
@@ -75,6 +75,7 @@ class WebUILoginDisplay : public LoginDisplay,
virtual void Login(const std::string& username,
const std::string& password) OVERRIDE;
virtual void LoginAsGuest() OVERRIDE;
+ virtual void RemoveUser(const std::string& username) OVERRIDE;
virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE;
virtual void SetWebUIHandler(
LoginDisplayWebUIHandler* webui_handler) OVERRIDE;
@@ -83,14 +84,32 @@ class WebUILoginDisplay : public LoginDisplay,
login_window_ = login_window;
}
+ const std::vector<UserManager::User>& users() const {
+ return users_;
+ }
+
+ bool show_guest() const {
+ return show_guest_;
+ }
+
+ bool show_new_user() const {
+ return show_new_user_;
+ }
+
private:
// Singleton implementation:
friend struct DefaultSingletonTraits<WebUILoginDisplay>;
WebUILoginDisplay();
- // Set of Users in the systemvisible UserControllers.
+ // Set of Users that are visible.
std::vector<UserManager::User> users_;
+ // Whether to show guest login.
+ bool show_guest_;
+
+ // Whether to show add new user.
+ bool show_new_user_;
+
// Container of the screen we are displaying
views::Widget* login_window_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/webui_login_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698