| 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/screens/update_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/update_screen.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 InstanceSet::iterator found = instance_set.find(inst); | 85 InstanceSet::iterator found = instance_set.find(inst); |
| 86 return (found != instance_set.end()); | 86 return (found != instance_set.end()); |
| 87 } | 87 } |
| 88 | 88 |
| 89 // static | 89 // static |
| 90 UpdateScreen* UpdateScreen::Get(ScreenManager* manager) { | 90 UpdateScreen* UpdateScreen::Get(ScreenManager* manager) { |
| 91 return static_cast<UpdateScreen*>( | 91 return static_cast<UpdateScreen*>( |
| 92 manager->GetScreen(WizardController::kUpdateScreenName)); | 92 manager->GetScreen(WizardController::kUpdateScreenName)); |
| 93 } | 93 } |
| 94 | 94 |
| 95 UpdateScreen::UpdateScreen( | 95 UpdateScreen::UpdateScreen(ScreenObserver* screen_observer, |
| 96 ScreenObserver* screen_observer, | 96 UpdateScreenActor* actor, |
| 97 UpdateScreenActor* actor, | 97 HostPairingController* remora_controller) |
| 98 HostPairingController* remora_controller) | 98 : BaseScreen(screen_observer), |
| 99 : WizardScreen(screen_observer), | |
| 100 state_(STATE_IDLE), | 99 state_(STATE_IDLE), |
| 101 reboot_check_delay_(0), | 100 reboot_check_delay_(0), |
| 102 is_checking_for_update_(true), | 101 is_checking_for_update_(true), |
| 103 is_downloading_update_(false), | 102 is_downloading_update_(false), |
| 104 is_ignore_update_deadlines_(false), | 103 is_ignore_update_deadlines_(false), |
| 105 is_shown_(false), | 104 is_shown_(false), |
| 106 ignore_idle_status_(true), | 105 ignore_idle_status_(true), |
| 107 actor_(actor), | 106 actor_(actor), |
| 108 remora_controller_(remora_controller), | 107 remora_controller_(remora_controller), |
| 109 is_first_detection_notification_(true), | 108 is_first_detection_notification_(true), |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 } | 535 } |
| 537 | 536 |
| 538 void UpdateScreen::SetHostPairingControllerStatus( | 537 void UpdateScreen::SetHostPairingControllerStatus( |
| 539 HostPairingController::UpdateStatus update_status) { | 538 HostPairingController::UpdateStatus update_status) { |
| 540 if (remora_controller_) { | 539 if (remora_controller_) { |
| 541 remora_controller_->OnUpdateStatusChanged(update_status); | 540 remora_controller_->OnUpdateStatusChanged(update_status); |
| 542 } | 541 } |
| 543 } | 542 } |
| 544 | 543 |
| 545 } // namespace chromeos | 544 } // namespace chromeos |
| OLD | NEW |