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 #include "chromeos/login/auth/login_performer.h" | 5 #include "chromeos/login/auth/login_performer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void LoginPerformer::OnPasswordChangeDetected() { | 100 void LoginPerformer::OnPasswordChangeDetected() { |
101 password_changed_ = true; | 101 password_changed_ = true; |
102 password_changed_callback_count_++; | 102 password_changed_callback_count_++; |
103 if (delegate_) { | 103 if (delegate_) { |
104 delegate_->OnPasswordChangeDetected(); | 104 delegate_->OnPasswordChangeDetected(); |
105 } else { | 105 } else { |
106 NOTREACHED(); | 106 NOTREACHED(); |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 void LoginPerformer::OnOldEncryptionDetected() { | 110 void LoginPerformer::OnOldEncryptionDetected(const UserContext& user_context) { |
111 DCHECK(task_runner_->RunsTasksOnCurrentThread()); | 111 DCHECK(task_runner_->RunsTasksOnCurrentThread()); |
112 | 112 |
113 if (delegate_) | 113 if (delegate_) |
114 delegate_->OnOldEncryptionDetected(); | 114 delegate_->OnOldEncryptionDetected(user_context); |
115 else | 115 else |
116 NOTREACHED(); | 116 NOTREACHED(); |
117 } | 117 } |
118 | 118 |
119 //////////////////////////////////////////////////////////////////////////////// | 119 //////////////////////////////////////////////////////////////////////////////// |
120 // LoginPerformer, public: | 120 // LoginPerformer, public: |
121 | 121 |
122 void LoginPerformer::NotifyWhitelistCheckFailure() { | 122 void LoginPerformer::NotifyWhitelistCheckFailure() { |
123 if (delegate_) | 123 if (delegate_) |
124 delegate_->WhiteListCheckFailed( | 124 delegate_->WhiteListCheckFailed( |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 } else { | 305 } else { |
306 NOTREACHED(); | 306 NOTREACHED(); |
307 } | 307 } |
308 user_context_.ClearSecrets(); | 308 user_context_.ClearSecrets(); |
309 } | 309 } |
310 | 310 |
311 void LoginPerformer::EnsureAuthenticator() { | 311 void LoginPerformer::EnsureAuthenticator() { |
312 authenticator_ = CreateAuthenticator(); | 312 authenticator_ = CreateAuthenticator(); |
313 } | 313 } |
314 } // namespace chromeos | 314 } // namespace chromeos |
OLD | NEW |