OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 364 |
365 bool has_cookies = | 365 bool has_cookies = |
366 login_performer_->auth_mode() == LoginPerformer::AUTH_MODE_EXTENSION; | 366 login_performer_->auth_mode() == LoginPerformer::AUTH_MODE_EXTENSION; |
367 | 367 |
368 // LoginPerformer instance will delete itself once online auth result is OK. | 368 // LoginPerformer instance will delete itself once online auth result is OK. |
369 // In case of failure it'll bring up ScreenLock and ask for | 369 // In case of failure it'll bring up ScreenLock and ask for |
370 // correct password/display error message. | 370 // correct password/display error message. |
371 // Even in case when following online,offline protocol and returning | 371 // Even in case when following online,offline protocol and returning |
372 // requests_pending = false, let LoginPerformer delete itself. | 372 // requests_pending = false, let LoginPerformer delete itself. |
373 login_performer_->set_delegate(NULL); | 373 login_performer_->set_delegate(NULL); |
374 LoginPerformer* performer = login_performer_.release(); | 374 ignore_result(login_performer_.release()); |
375 performer = NULL; | |
376 | 375 |
377 // Will call OnProfilePrepared() in the end. | 376 // Will call OnProfilePrepared() in the end. |
378 LoginUtils::Get()->PrepareProfile(username, | 377 LoginUtils::Get()->PrepareProfile(username, |
379 password, | 378 password, |
380 credentials, | 379 credentials, |
381 pending_requests, | 380 pending_requests, |
382 using_oauth, | 381 using_oauth, |
383 has_cookies, | 382 has_cookies, |
384 this); | 383 this); |
385 | 384 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 cryptohomed->AsyncSetOwnerUser( | 586 cryptohomed->AsyncSetOwnerUser( |
588 UserCrosSettingsProvider::cached_owner(), NULL); | 587 UserCrosSettingsProvider::cached_owner(), NULL); |
589 | 588 |
590 // Do not invoke AsyncDoAutomaticFreeDiskSpaceControl(NULL) here | 589 // Do not invoke AsyncDoAutomaticFreeDiskSpaceControl(NULL) here |
591 // so it does not delay the following mount. Cleanup will be | 590 // so it does not delay the following mount. Cleanup will be |
592 // started in Cryptohomed by timer. | 591 // started in Cryptohomed by timer. |
593 } | 592 } |
594 } | 593 } |
595 | 594 |
596 } // namespace chromeos | 595 } // namespace chromeos |
OLD | NEW |