OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 authentication->SchedulePasswordMigration(user_context.username, | 224 authentication->SchedulePasswordMigration(user_context.username, |
225 user_context.password, | 225 user_context.password, |
226 new_flow); | 226 new_flow); |
227 } | 227 } |
228 | 228 |
229 UserContext user_context_copy( | 229 UserContext user_context_copy( |
230 user_context.username, | 230 user_context.username, |
231 user_context.password, | 231 user_context.password, |
232 user_context.auth_code, | 232 user_context.auth_code, |
233 user_context.username_hash, | 233 user_context.username_hash, |
234 user_context.using_oauth); | 234 user_context.using_oauth, |
| 235 user_context.auth_flow); |
235 | 236 |
236 user_context_copy.password = authentication->TransformPassword( | 237 user_context_copy.password = authentication->TransformPassword( |
237 user_context_copy.username, | 238 user_context_copy.username, |
238 user_context_copy.password); | 239 user_context_copy.password); |
239 | 240 |
240 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); | 241 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); |
241 BrowserThread::PostTask( | 242 BrowserThread::PostTask( |
242 BrowserThread::UI, FROM_HERE, | 243 BrowserThread::UI, FROM_HERE, |
243 base::Bind(&Authenticator::LoginAsLocallyManagedUser, | 244 base::Bind(&Authenticator::LoginAsLocallyManagedUser, |
244 authenticator_.get(), | 245 authenticator_.get(), |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // state in the case when offline login fails. | 335 // state in the case when offline login fails. |
335 online_attempt_host_.Check(profile, user_context_); | 336 online_attempt_host_.Check(profile, user_context_); |
336 } else { | 337 } else { |
337 NOTREACHED(); | 338 NOTREACHED(); |
338 } | 339 } |
339 user_context_.password.clear(); | 340 user_context_.password.clear(); |
340 user_context_.auth_code.clear(); | 341 user_context_.auth_code.clear(); |
341 } | 342 } |
342 | 343 |
343 } // namespace chromeos | 344 } // namespace chromeos |
OLD | NEW |