| 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/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // Add the view representing the guest user last. | 106 // Add the view representing the guest user last. |
| 107 controllers_.push_back(new UserController(this)); | 107 controllers_.push_back(new UserController(this)); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void ExistingUserController::Init() { | 110 void ExistingUserController::Init() { |
| 111 if (!background_window_) { | 111 if (!background_window_) { |
| 112 background_window_ = BackgroundView::CreateWindowContainingView( | 112 background_window_ = BackgroundView::CreateWindowContainingView( |
| 113 background_bounds_, | 113 background_bounds_, |
| 114 &background_view_); | 114 &background_view_); |
| 115 | 115 |
| 116 if (!WizardController::IsOobeComplete()) { | 116 if (!WizardController::IsOobeCompleted()) { |
| 117 background_view_->SetOobeProgressBarVisible(true); | 117 background_view_->SetOobeProgressBarVisible(true); |
| 118 background_view_->SetOobeProgress(chromeos::BackgroundView::SIGNIN); | 118 background_view_->SetOobeProgress(chromeos::BackgroundView::SIGNIN); |
| 119 } | 119 } |
| 120 background_window_->Show(); | 120 background_window_->Show(); |
| 121 } | 121 } |
| 122 for (size_t i = 0; i < controllers_.size(); ++i) { | 122 for (size_t i = 0; i < controllers_.size(); ++i) { |
| 123 (controllers_[i])->Init(static_cast<int>(i), | 123 (controllers_[i])->Init(static_cast<int>(i), |
| 124 static_cast<int>(controllers_.size())); | 124 static_cast<int>(controllers_.size())); |
| 125 } | 125 } |
| 126 | 126 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 void ExistingUserController::ResyncEncryptedData() { | 406 void ExistingUserController::ResyncEncryptedData() { |
| 407 ChromeThread::PostTask( | 407 ChromeThread::PostTask( |
| 408 ChromeThread::UI, FROM_HERE, | 408 ChromeThread::UI, FROM_HERE, |
| 409 NewRunnableMethod(authenticator_.get(), | 409 NewRunnableMethod(authenticator_.get(), |
| 410 &Authenticator::ResyncEncryptedData, | 410 &Authenticator::ResyncEncryptedData, |
| 411 cached_credentials_)); | 411 cached_credentials_)); |
| 412 cached_credentials_ = GaiaAuthConsumer::ClientLoginResult(); | 412 cached_credentials_ = GaiaAuthConsumer::ClientLoginResult(); |
| 413 } | 413 } |
| 414 | 414 |
| 415 } // namespace chromeos | 415 } // namespace chromeos |
| OLD | NEW |