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

Side by Side Diff: chrome/browser/chromeos/login/ui/webui_login_display.h

Issue 1183893005: ChromeOS: user whitelist check should happen before entering password. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void ShowSigninScreenForCreds(const std::string& username, 75 virtual void ShowSigninScreenForCreds(const std::string& username,
76 const std::string& password); 76 const std::string& password);
77 bool IsShowGuest() const override; 77 bool IsShowGuest() const override;
78 bool IsShowUsers() const override; 78 bool IsShowUsers() const override;
79 bool IsUserSigninCompleted() const override; 79 bool IsUserSigninCompleted() const override;
80 void SetDisplayEmail(const std::string& email) override; 80 void SetDisplayEmail(const std::string& email) override;
81 81
82 void HandleGetUsers() override; 82 void HandleGetUsers() override;
83 void CheckUserStatus(const std::string& user_id) override; 83 void CheckUserStatus(const std::string& user_id) override;
84 const user_manager::UserList& GetUsers() const override; 84 const user_manager::UserList& GetUsers() const override;
85 bool IsUserWhitelisted(const std::string& user_id) override;
85 86
86 // ui::UserActivityDetector implementation: 87 // ui::UserActivityDetector implementation:
87 void OnUserActivity(const ui::Event* event) override; 88 void OnUserActivity(const ui::Event* event) override;
88 89
89 private: 90 private:
90 91
91 // Whether to show guest login. 92 // Whether to show guest login.
92 bool show_guest_; 93 bool show_guest_;
93 94
94 // Weather to show the user pods or a GAIA sign in. 95 // Weather to show the user pods or a GAIA sign in.
95 // Public sessions are always shown. 96 // Public sessions are always shown.
96 bool show_users_; 97 bool show_users_;
97 98
98 // Whether to show add new user. 99 // Whether to show add new user.
99 bool show_new_user_; 100 bool show_new_user_;
100 101
101 // Reference to the WebUI handling layer for the login screen 102 // Reference to the WebUI handling layer for the login screen
102 LoginDisplayWebUIHandler* webui_handler_; 103 LoginDisplayWebUIHandler* webui_handler_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); 105 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay);
105 }; 106 };
106 107
107 } // namespace chromeos 108 } // namespace chromeos
108 109
109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_display.h ('k') | chrome/browser/chromeos/login/ui/webui_login_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698