| 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/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 10 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 10 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 CryptohomeLibrary* lib = CrosLibrary::Get()->GetCryptohomeLibrary(); | 75 CryptohomeLibrary* lib = CrosLibrary::Get()->GetCryptohomeLibrary(); |
| 76 return lib->AsyncMountForBwsi(this); | 76 return lib->AsyncMountForBwsi(this); |
| 77 } | 77 } |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 DISALLOW_COPY_AND_ASSIGN(MountGuestAttempt); | 80 DISALLOW_COPY_AND_ASSIGN(MountGuestAttempt); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 class MigrateAttempt : public CryptohomeOp { | 83 class MigrateAttempt : public CryptohomeOp { |
| 84 public: | 84 public: |
| 85 // TODO(cmasone): get rid of passing_old_hash arg, as it's always true. |
| 85 MigrateAttempt(AuthAttemptState* current_attempt, | 86 MigrateAttempt(AuthAttemptState* current_attempt, |
| 86 AuthAttemptStateResolver* callback, | 87 AuthAttemptStateResolver* callback, |
| 87 bool passing_old_hash, | 88 bool passing_old_hash, |
| 88 const std::string& hash) | 89 const std::string& hash) |
| 89 : CryptohomeOp(current_attempt, callback), | 90 : CryptohomeOp(current_attempt, callback), |
| 90 is_old_hash_(passing_old_hash), | 91 is_old_hash_(passing_old_hash), |
| 91 hash_(hash) { | 92 hash_(hash) { |
| 92 } | 93 } |
| 93 | 94 |
| 94 virtual ~MigrateAttempt() {} | 95 virtual ~MigrateAttempt() {} |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 188 |
| 188 // static | 189 // static |
| 189 CryptohomeOp* CryptohomeOp::CreateCheckKeyAttempt( | 190 CryptohomeOp* CryptohomeOp::CreateCheckKeyAttempt( |
| 190 AuthAttemptState* current_attempt, | 191 AuthAttemptState* current_attempt, |
| 191 AuthAttemptStateResolver* callback) { | 192 AuthAttemptStateResolver* callback) { |
| 192 | 193 |
| 193 return new CheckKeyAttempt(current_attempt, callback); | 194 return new CheckKeyAttempt(current_attempt, callback); |
| 194 } | 195 } |
| 195 | 196 |
| 196 } // namespace chromeos | 197 } // namespace chromeos |
| OLD | NEW |