| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/login_performer.h" | 5 #include "chrome/browser/chromeos/login/login_performer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); | 149 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); |
| 150 password_changed_ = true; | 150 password_changed_ = true; |
| 151 DVLOG(1) << "Password change detected - locking screen."; | 151 DVLOG(1) << "Password change detected - locking screen."; |
| 152 RequestScreenLock(); | 152 RequestScreenLock(); |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 | 155 |
| 156 //////////////////////////////////////////////////////////////////////////////// | 156 //////////////////////////////////////////////////////////////////////////////// |
| 157 // LoginPerformer, SignedSettingsHelper::Callback implementation: | 157 // LoginPerformer, SignedSettingsHelper::Callback implementation: |
| 158 | 158 |
| 159 void LoginPerformer::OnCheckWhiteListCompleted(bool success, | 159 void LoginPerformer::OnCheckWhitelistCompleted(SignedSettings::ReturnCode code, |
| 160 const std::string& email) { | 160 const std::string& email) { |
| 161 if (success) { | 161 if (code == SignedSettings::SUCCESS) { |
| 162 // Whitelist check passed, continue with authentication. | 162 // Whitelist check passed, continue with authentication. |
| 163 StartAuthentication(); | 163 StartAuthentication(); |
| 164 } else { | 164 } else { |
| 165 if (delegate_) | 165 if (delegate_) |
| 166 delegate_->WhiteListCheckFailed(email); | 166 delegate_->WhiteListCheckFailed(email); |
| 167 else | 167 else |
| 168 NOTREACHED(); | 168 NOTREACHED(); |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 | 171 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 profile, | 428 profile, |
| 429 username_, | 429 username_, |
| 430 password_, | 430 password_, |
| 431 captcha_token_, | 431 captcha_token_, |
| 432 captcha_)); | 432 captcha_)); |
| 433 } | 433 } |
| 434 password_.clear(); | 434 password_.clear(); |
| 435 } | 435 } |
| 436 | 436 |
| 437 } // namespace chromeos | 437 } // namespace chromeos |
| OLD | NEW |