OLD | NEW |
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 #include "chrome/browser/chromeos/login/parallel_authenticator.h" | 5 #include "chrome/browser/chromeos/login/parallel_authenticator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 case OFFLINE_LOGIN: | 833 case OFFLINE_LOGIN: |
834 return ONLINE_LOGIN; | 834 return ONLINE_LOGIN; |
835 default: | 835 default: |
836 NOTREACHED(); | 836 NOTREACHED(); |
837 return offline_state; | 837 return offline_state; |
838 } | 838 } |
839 } | 839 } |
840 | 840 |
841 void ParallelAuthenticator::ResolveLoginCompletionStatus() { | 841 void ParallelAuthenticator::ResolveLoginCompletionStatus() { |
842 // Shortcut online state resolution process. | 842 // Shortcut online state resolution process. |
843 current_state_->RecordOnlineLoginStatus(LoginFailure::None()); | 843 current_state_->RecordOnlineLoginStatus(LoginFailure::LoginFailureNone()); |
844 Resolve(); | 844 Resolve(); |
845 } | 845 } |
846 | 846 |
847 void ParallelAuthenticator::SetOwnerState(bool owner_check_finished, | 847 void ParallelAuthenticator::SetOwnerState(bool owner_check_finished, |
848 bool check_result) { | 848 bool check_result) { |
849 owner_is_verified_ = owner_check_finished; | 849 owner_is_verified_ = owner_check_finished; |
850 user_can_login_ = check_result; | 850 user_can_login_ = check_result; |
851 } | 851 } |
852 | 852 |
853 } // namespace chromeos | 853 } // namespace chromeos |
OLD | NEW |