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

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

Issue 23684033: Fix device policy recovery on CrOS login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/parallel_authenticator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PARALLEL_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 // Used for testing to set the expected state of an owner check. 214 // Used for testing to set the expected state of an owner check.
215 void SetOwnerState(bool owner_check_finished, bool check_result); 215 void SetOwnerState(bool owner_check_finished, bool check_result);
216 216
217 // checks if the current mounted home contains the owner case and either 217 // checks if the current mounted home contains the owner case and either
218 // continues or fails the log-in. Used for policy lost mitigation "safe-mode". 218 // continues or fails the log-in. Used for policy lost mitigation "safe-mode".
219 // Returns true if the owner check has been successful or if it is not needed. 219 // Returns true if the owner check has been successful or if it is not needed.
220 bool VerifyOwner(); 220 bool VerifyOwner();
221 221
222 // Handles completion of the ownership check and continues login. 222 // Handles completion of the ownership check and continues login.
223 void OnOwnershipChecked(DeviceSettingsService::OwnershipStatus status); 223 void OnOwnershipChecked(bool is_owner);
224 224
225 // Signal login completion status for cases when a new user is added via 225 // Signal login completion status for cases when a new user is added via
226 // an external authentication provider (i.e. GAIA extension). 226 // an external authentication provider (i.e. GAIA extension).
227 void ResolveLoginCompletionStatus(); 227 void ResolveLoginCompletionStatus();
228 228
229 scoped_ptr<AuthAttemptState> current_state_; 229 scoped_ptr<AuthAttemptState> current_state_;
230 scoped_ptr<OnlineAttempt> current_online_; 230 scoped_ptr<OnlineAttempt> current_online_;
231 bool migrate_attempted_; 231 bool migrate_attempted_;
232 bool remove_attempted_; 232 bool remove_attempted_;
233 bool resync_attempted_; 233 bool resync_attempted_;
(...skipping 21 matching lines...) Expand all
255 // When |remove_user_data_on_failure_| is set, we delay calling 255 // When |remove_user_data_on_failure_| is set, we delay calling
256 // consumer_->OnLoginFailure() until we removed the user cryptohome. 256 // consumer_->OnLoginFailure() until we removed the user cryptohome.
257 const LoginFailure* delayed_login_failure_; 257 const LoginFailure* delayed_login_failure_;
258 258
259 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); 259 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator);
260 }; 260 };
261 261
262 } // namespace chromeos 262 } // namespace chromeos
263 263
264 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ 264 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/parallel_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698