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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.h

Issue 8773046: [cros] Display emails of users are stored in a separate dictionary in Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years 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 | Annotate | Revision Log
OLDNEW
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
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
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 display_email_;
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_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698