OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LAUNCH_SIGNIN_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 protected: | 36 protected: |
37 virtual ~Delegate() {} | 37 virtual ~Delegate() {} |
38 }; | 38 }; |
39 | 39 |
40 AppLaunchSigninScreen(OobeUI* oobe_display, Delegate *delegate); | 40 AppLaunchSigninScreen(OobeUI* oobe_display, Delegate *delegate); |
41 virtual ~AppLaunchSigninScreen(); | 41 virtual ~AppLaunchSigninScreen(); |
42 | 42 |
43 void Show(); | 43 void Show(); |
44 | 44 |
| 45 void set_user_manager_for_testing(UserManager* user_manager) { |
| 46 user_manager_for_testing_ = user_manager; |
| 47 } |
| 48 |
45 private: | 49 private: |
46 void InitOwnerUserList(); | 50 void InitOwnerUserList(); |
| 51 UserManager* GetUserManager(); |
47 | 52 |
48 // SigninScreenHandlerDelegate implementation: | 53 // SigninScreenHandlerDelegate implementation: |
49 virtual void CancelPasswordChangedFlow() OVERRIDE; | 54 virtual void CancelPasswordChangedFlow() OVERRIDE; |
50 virtual void CancelUserAdding() OVERRIDE; | 55 virtual void CancelUserAdding() OVERRIDE; |
51 virtual void CreateAccount() OVERRIDE; | 56 virtual void CreateAccount() OVERRIDE; |
52 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; | 57 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; |
53 virtual void Login(const UserContext& user_context) OVERRIDE; | 58 virtual void Login(const UserContext& user_context) OVERRIDE; |
54 virtual void LoginAsRetailModeUser() OVERRIDE; | 59 virtual void LoginAsRetailModeUser() OVERRIDE; |
55 virtual void LoginAsGuest() OVERRIDE; | 60 virtual void LoginAsGuest() OVERRIDE; |
56 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; | 61 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; |
(...skipping 29 matching lines...) Expand all Loading... |
86 bool using_oauth) OVERRIDE; | 91 bool using_oauth) OVERRIDE; |
87 | 92 |
88 OobeUI* oobe_ui_; | 93 OobeUI* oobe_ui_; |
89 Delegate* delegate_; | 94 Delegate* delegate_; |
90 LoginDisplayWebUIHandler* webui_handler_; | 95 LoginDisplayWebUIHandler* webui_handler_; |
91 scoped_refptr<Authenticator> authenticator_; | 96 scoped_refptr<Authenticator> authenticator_; |
92 | 97 |
93 // This list should have at most one user, and that user should be the owner. | 98 // This list should have at most one user, and that user should be the owner. |
94 UserList owner_user_list_; | 99 UserList owner_user_list_; |
95 | 100 |
| 101 UserManager* user_manager_for_testing_; |
| 102 |
96 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); | 103 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); |
97 }; | 104 }; |
98 | 105 |
99 } // namespace chromeos | 106 } // namespace chromeos |
100 | 107 |
101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
OLD | NEW |