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/cryptohome_op.h" | 5 #include "chrome/browser/chromeos/login/cryptohome_op.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "chrome/browser/browser_thread.h" | |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
11 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 10 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
12 #include "chrome/browser/chromeos/login/auth_attempt_state.h" | 11 #include "chrome/browser/chromeos/login/auth_attempt_state.h" |
13 #include "chrome/browser/chromeos/login/auth_attempt_state_resolver.h" | 12 #include "chrome/browser/chromeos/login/auth_attempt_state_resolver.h" |
| 13 #include "content/browser/browser_thread.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 CryptohomeOp::CryptohomeOp(AuthAttemptState* current_attempt, | 17 CryptohomeOp::CryptohomeOp(AuthAttemptState* current_attempt, |
18 AuthAttemptStateResolver* callback) | 18 AuthAttemptStateResolver* callback) |
19 : attempt_(current_attempt), | 19 : attempt_(current_attempt), |
20 resolver_(callback) { | 20 resolver_(callback) { |
21 CHECK(chromeos::CrosLibrary::Get()->EnsureLoaded()); | 21 CHECK(chromeos::CrosLibrary::Get()->EnsureLoaded()); |
22 } | 22 } |
23 | 23 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 // static | 190 // static |
191 CryptohomeOp* CryptohomeOp::CreateCheckKeyAttempt( | 191 CryptohomeOp* CryptohomeOp::CreateCheckKeyAttempt( |
192 AuthAttemptState* current_attempt, | 192 AuthAttemptState* current_attempt, |
193 AuthAttemptStateResolver* callback) { | 193 AuthAttemptStateResolver* callback) { |
194 | 194 |
195 return new CheckKeyAttempt(current_attempt, callback); | 195 return new CheckKeyAttempt(current_attempt, callback); |
196 } | 196 } |
197 | 197 |
198 } // namespace chromeos | 198 } // namespace chromeos |
OLD | NEW |