OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXISTING_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 return current_controller_; | 59 return current_controller_; |
60 } | 60 } |
61 | 61 |
62 // Creates and shows login UI for known users. | 62 // Creates and shows login UI for known users. |
63 void Init(const UserList& users); | 63 void Init(const UserList& users); |
64 | 64 |
65 // LoginDisplay::Delegate: implementation | 65 // LoginDisplay::Delegate: implementation |
66 virtual void CreateAccount() OVERRIDE; | 66 virtual void CreateAccount() OVERRIDE; |
67 virtual string16 GetConnectedNetworkName() OVERRIDE; | 67 virtual string16 GetConnectedNetworkName() OVERRIDE; |
68 virtual void FixCaptivePortal() OVERRIDE; | 68 virtual void FixCaptivePortal() OVERRIDE; |
69 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; | |
69 virtual void CompleteLogin(const std::string& username, | 70 virtual void CompleteLogin(const std::string& username, |
70 const std::string& password) OVERRIDE; | 71 const std::string& password) OVERRIDE; |
71 virtual void Login(const std::string& username, | 72 virtual void Login(const std::string& username, |
72 const std::string& password) OVERRIDE; | 73 const std::string& password) OVERRIDE; |
73 virtual void LoginAsGuest() OVERRIDE; | 74 virtual void LoginAsGuest() OVERRIDE; |
74 virtual void OnUserSelected(const std::string& username) OVERRIDE; | 75 virtual void OnUserSelected(const std::string& username) OVERRIDE; |
75 virtual void OnStartEnterpriseEnrollment() OVERRIDE; | 76 virtual void OnStartEnterpriseEnrollment() OVERRIDE; |
76 | 77 |
77 // content::NotificationObserver implementation. | 78 // content::NotificationObserver implementation. |
78 virtual void Observe(int type, | 79 virtual void Observe(int type, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 | 196 |
196 // Whether two factor credentials were used. | 197 // Whether two factor credentials were used. |
197 bool two_factor_credentials_; | 198 bool two_factor_credentials_; |
198 | 199 |
199 // Used to verify ownership before starting enterprise enrollment. | 200 // Used to verify ownership before starting enterprise enrollment. |
200 scoped_ptr<OwnershipStatusChecker> ownership_checker_; | 201 scoped_ptr<OwnershipStatusChecker> ownership_checker_; |
201 | 202 |
202 // Whether it's first login to the device and this user will be owner. | 203 // Whether it's first login to the device and this user will be owner. |
203 bool is_owner_login_; | 204 bool is_owner_login_; |
204 | 205 |
206 // The displayed email for the next login attempt set by |SetDisplayEmail|. | |
207 std::string next_login_display_email_; | |
Nikita (slow)
2011/12/05 13:13:04
nit: rename to display_email_ or login_user_displa
Nikita (slow)
2011/12/05 13:14:15
* In this context
Ivan Korotkov
2011/12/05 14:12:48
Done. 'next' means the call to CompleteLogin() tha
Nikita (slow)
2011/12/05 17:55:35
Since it's get called from the sign in process alr
| |
208 | |
205 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); | 209 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); |
206 | 210 |
207 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 211 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
208 }; | 212 }; |
209 | 213 |
210 } // namespace chromeos | 214 } // namespace chromeos |
211 | 215 |
212 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 216 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
OLD | NEW |