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

Side by Side Diff: chrome/browser/chromeos/login/screens/user_selection_screen.h

Issue 2903353003: Adding mojo calls for easy unlock service (Closed)
Patch Set: comments and rebase Created 3 years, 6 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_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>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 base::DictionaryValue* user_dict); 108 base::DictionaryValue* user_dict);
109 109
110 // Fills |user_dict| with |user| multi-profile related preferences. 110 // Fills |user_dict| with |user| multi-profile related preferences.
111 static void FillMultiProfileUserPrefs(user_manager::User* user, 111 static void FillMultiProfileUserPrefs(user_manager::User* user,
112 base::DictionaryValue* user_dict, 112 base::DictionaryValue* user_dict,
113 bool is_signin_to_add); 113 bool is_signin_to_add);
114 114
115 // Determines if user auth status requires online sign in. 115 // Determines if user auth status requires online sign in.
116 static bool ShouldForceOnlineSignIn(const user_manager::User* user); 116 static bool ShouldForceOnlineSignIn(const user_manager::User* user);
117 117
118 std::unique_ptr<base::ListValue> PrepareUserList();
119
118 protected: 120 protected:
119 UserBoardView* view_ = nullptr; 121 UserBoardView* view_ = nullptr;
120 122
121 // Map from public session account IDs to recommended locales set by policy. 123 // Map from public session account IDs to recommended locales set by policy.
122 std::map<AccountId, std::vector<std::string>> 124 std::map<AccountId, std::vector<std::string>>
123 public_session_recommended_locales_; 125 public_session_recommended_locales_;
124 126
125 private: 127 private:
126 class DircryptoMigrationChecker; 128 class DircryptoMigrationChecker;
127 129
(...skipping 19 matching lines...) Expand all
147 149
148 // Timer for measuring idle state duration before password clear. 150 // Timer for measuring idle state duration before password clear.
149 base::OneShotTimer password_clear_timer_; 151 base::OneShotTimer password_clear_timer_;
150 152
151 // Token handler util for checking user OAuth token status. 153 // Token handler util for checking user OAuth token status.
152 std::unique_ptr<TokenHandleUtil> token_handle_util_; 154 std::unique_ptr<TokenHandleUtil> token_handle_util_;
153 155
154 // Helper to check whether a user needs dircrypto migration. 156 // Helper to check whether a user needs dircrypto migration.
155 std::unique_ptr<DircryptoMigrationChecker> dircrypto_migration_checker_; 157 std::unique_ptr<DircryptoMigrationChecker> dircrypto_migration_checker_;
156 158
159 user_manager::UserList users_to_send_;
160
157 base::WeakPtrFactory<UserSelectionScreen> weak_factory_; 161 base::WeakPtrFactory<UserSelectionScreen> weak_factory_;
158 162
159 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen); 163 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen);
160 }; 164 };
161 165
162 } // namespace chromeos 166 } // namespace chromeos
163 167
164 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ 168 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698