OLD | NEW |
---|---|
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_SCREENS_USER_SELECTION_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "ash/public/interfaces/lock_screen.mojom.h" | |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 14 #include "base/macros.h" |
14 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
15 #include "base/values.h" | 16 #include "base/values.h" |
16 #include "chrome/browser/chromeos/login/screens/base_screen.h" | 17 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
17 #include "chrome/browser/chromeos/login/signin/token_handle_util.h" | 18 #include "chrome/browser/chromeos/login/signin/token_handle_util.h" |
18 #include "chrome/browser/chromeos/login/ui/login_display.h" | 19 #include "chrome/browser/chromeos/login/ui/login_display.h" |
19 #include "components/proximity_auth/screenlock_bridge.h" | 20 #include "components/proximity_auth/screenlock_bridge.h" |
20 #include "components/signin/core/account_id/account_id.h" | 21 #include "components/signin/core/account_id/account_id.h" |
21 #include "components/user_manager/user.h" | 22 #include "components/user_manager/user.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 base::DictionaryValue* user_dict); | 109 base::DictionaryValue* user_dict); |
109 | 110 |
110 // Fills |user_dict| with |user| multi-profile related preferences. | 111 // Fills |user_dict| with |user| multi-profile related preferences. |
111 static void FillMultiProfileUserPrefs(user_manager::User* user, | 112 static void FillMultiProfileUserPrefs(user_manager::User* user, |
112 base::DictionaryValue* user_dict, | 113 base::DictionaryValue* user_dict, |
113 bool is_signin_to_add); | 114 bool is_signin_to_add); |
114 | 115 |
115 // Determines if user auth status requires online sign in. | 116 // Determines if user auth status requires online sign in. |
116 static bool ShouldForceOnlineSignIn(const user_manager::User* user); | 117 static bool ShouldForceOnlineSignIn(const user_manager::User* user); |
117 | 118 |
118 std::unique_ptr<base::ListValue> PrepareUserList(); | 119 // Fills |user_info| with information about |user|. |
120 // TODO: Public sesssions exist in login screen, but not lock screen. | |
121 // We will need public session locales in the future when we change login | |
122 // screen to view-based as well. See crbug.com/732452. | |
123 static void FillUserMojoStruct(const user_manager::User* user, | |
124 bool is_owner, | |
125 bool is_signin_to_add, | |
126 AuthType auth_type, | |
127 ash::mojom::LoginUserInfo* user_info); | |
128 | |
129 std::unique_ptr<base::ListValue> UpdateAndReturnUserList(); | |
jdufault
2017/06/14 02:20:42
Nit: since you already renamed this what about Upd
xiaoyinh(OOO Sep 11-29)
2017/06/15 18:39:38
Done.
| |
130 std::vector<ash::mojom::LoginUserInfoPtr> UpdateAndReturnUserListForMojo(); | |
119 | 131 |
120 protected: | 132 protected: |
121 UserBoardView* view_ = nullptr; | 133 UserBoardView* view_ = nullptr; |
122 | 134 |
123 // Map from public session account IDs to recommended locales set by policy. | 135 // Map from public session account IDs to recommended locales set by policy. |
124 std::map<AccountId, std::vector<std::string>> | 136 std::map<AccountId, std::vector<std::string>> |
125 public_session_recommended_locales_; | 137 public_session_recommended_locales_; |
126 | 138 |
127 private: | 139 private: |
128 class DircryptoMigrationChecker; | 140 class DircryptoMigrationChecker; |
(...skipping 30 matching lines...) Expand all Loading... | |
159 user_manager::UserList users_to_send_; | 171 user_manager::UserList users_to_send_; |
160 | 172 |
161 base::WeakPtrFactory<UserSelectionScreen> weak_factory_; | 173 base::WeakPtrFactory<UserSelectionScreen> weak_factory_; |
162 | 174 |
163 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen); | 175 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen); |
164 }; | 176 }; |
165 | 177 |
166 } // namespace chromeos | 178 } // namespace chromeos |
167 | 179 |
168 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ | 180 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ |
OLD | NEW |