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

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

Issue 2808423002: cros: Show dircryto migration banner (Closed)
Patch Set: add a test, fix nits Created 3 years, 8 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 static bool ShouldForceOnlineSignIn(const user_manager::User* user); 116 static bool ShouldForceOnlineSignIn(const user_manager::User* user);
117 117
118 protected: 118 protected:
119 UserBoardView* view_ = nullptr; 119 UserBoardView* view_ = nullptr;
120 120
121 // Map from public session account IDs to recommended locales set by policy. 121 // Map from public session account IDs to recommended locales set by policy.
122 std::map<AccountId, std::vector<std::string>> 122 std::map<AccountId, std::vector<std::string>>
123 public_session_recommended_locales_; 123 public_session_recommended_locales_;
124 124
125 private: 125 private:
126 class DircryptoMigrationChecker;
127
126 EasyUnlockService* GetEasyUnlockServiceForUser( 128 EasyUnlockService* GetEasyUnlockServiceForUser(
127 const AccountId& account_id) const; 129 const AccountId& account_id) const;
128 130
129 void OnUserStatusChecked(const AccountId& account_id, 131 void OnUserStatusChecked(const AccountId& account_id,
130 TokenHandleUtil::TokenHandleStatus status); 132 TokenHandleUtil::TokenHandleStatus status);
131 133
132 LoginDisplayWebUIHandler* handler_ = nullptr; 134 LoginDisplayWebUIHandler* handler_ = nullptr;
133 LoginDisplay::Delegate* login_display_delegate_ = nullptr; 135 LoginDisplay::Delegate* login_display_delegate_ = nullptr;
134 136
135 // Whether to show guest login. 137 // Whether to show guest login.
136 bool show_guest_ = false; 138 bool show_guest_ = false;
137 139
138 // Purpose of the screen (see constants in OobeUI). 140 // Purpose of the screen (see constants in OobeUI).
139 const std::string display_type_; 141 const std::string display_type_;
140 142
141 // Set of Users that are visible. 143 // Set of Users that are visible.
142 user_manager::UserList users_; 144 user_manager::UserList users_;
143 145
144 // Map of accounnt ids to their current authentication type. If a user is not 146 // Map of accounnt ids to their current authentication type. If a user is not
145 // contained in the map, it is using the default authentication type. 147 // contained in the map, it is using the default authentication type.
146 std::map<AccountId, proximity_auth::ScreenlockBridge::LockHandler::AuthType> 148 std::map<AccountId, proximity_auth::ScreenlockBridge::LockHandler::AuthType>
147 user_auth_type_map_; 149 user_auth_type_map_;
148 150
149 // Timer for measuring idle state duration before password clear. 151 // Timer for measuring idle state duration before password clear.
150 base::OneShotTimer password_clear_timer_; 152 base::OneShotTimer password_clear_timer_;
151 153
152 // Token handler util for checking user OAuth token status. 154 // Token handler util for checking user OAuth token status.
153 std::unique_ptr<TokenHandleUtil> token_handle_util_; 155 std::unique_ptr<TokenHandleUtil> token_handle_util_;
154 156
157 // Helper to check whether a user needs dircrypto migration.
158 std::unique_ptr<DircryptoMigrationChecker> dircrypto_migration_checker_;
159
155 base::WeakPtrFactory<UserSelectionScreen> weak_factory_; 160 base::WeakPtrFactory<UserSelectionScreen> weak_factory_;
156 161
157 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen); 162 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen);
158 }; 163 };
159 164
160 } // namespace chromeos 165 } // namespace chromeos
161 166
162 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ 167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/login/screens/user_selection_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698