Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Side by Side Diff: chrome/browser/chromeos/login/cryptohome_op.cc

Issue 5108001: [Chrome OS] Fix data migration on PW change in parallel auth pathway (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/parallel_authenticator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/parallel_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698