| 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/auth_attempt_state.h" | 5 #include "chrome/browser/chromeos/login/auth_attempt_state.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "chrome/browser/browser_thread.h" | 9 #include "chrome/browser/browser_thread.h" |
| 10 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 10 #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
| 11 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | 11 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" |
| 12 #include "cros/chromeos_cryptohome.h" | 12 #include "third_party/cros/chromeos_cryptohome.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 AuthAttemptState::AuthAttemptState(const std::string& username, | 16 AuthAttemptState::AuthAttemptState(const std::string& username, |
| 17 const std::string& password, | 17 const std::string& password, |
| 18 const std::string& ascii_hash, | 18 const std::string& ascii_hash, |
| 19 const std::string& login_token, | 19 const std::string& login_token, |
| 20 const std::string& login_captcha, | 20 const std::string& login_captcha, |
| 21 const bool user_is_new) | 21 const bool user_is_new) |
| 22 : username(username), | 22 : username(username), |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 117 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 118 return cryptohome_outcome_; | 118 return cryptohome_outcome_; |
| 119 } | 119 } |
| 120 | 120 |
| 121 int AuthAttemptState::cryptohome_code() { | 121 int AuthAttemptState::cryptohome_code() { |
| 122 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 122 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 123 return cryptohome_code_; | 123 return cryptohome_code_; |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace chromeos | 126 } // namespace chromeos |
| OLD | NEW |