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

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

Issue 7511030: Merge 95551 - [ChromeOS] Assorted WebUI login fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: 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
===================================================================
--- chrome/browser/chromeos/login/webui_login_display.h (revision 95551)
+++ chrome/browser/chromeos/login/webui_login_display.h (working copy)
@@ -75,6 +75,7 @@
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 @@
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