OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/host_pairing_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/host_pairing_screen.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/chromeos/login/wizard_controller.h" | 8 #include "chrome/browser/chromeos/login/wizard_controller.h" |
9 #include "components/pairing/host_pairing_controller.h" | 9 #include "components/pairing/host_pairing_controller.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 using namespace host_pairing; | 13 using namespace host_pairing; |
14 using namespace pairing_chromeos; | 14 using namespace pairing_chromeos; |
15 | 15 |
16 HostPairingScreen::HostPairingScreen( | 16 HostPairingScreen::HostPairingScreen( |
17 ScreenObserver* observer, | 17 ScreenObserver* observer, |
18 HostPairingScreenActor* actor, | 18 HostPairingScreenActor* actor, |
19 pairing_chromeos::HostPairingController* remora_controller) | 19 pairing_chromeos::HostPairingController* remora_controller) |
20 : WizardScreen(observer), | 20 : BaseScreen(observer), |
21 actor_(actor), | 21 actor_(actor), |
22 remora_controller_(remora_controller), | 22 remora_controller_(remora_controller), |
23 current_stage_(HostPairingController::STAGE_NONE) { | 23 current_stage_(HostPairingController::STAGE_NONE) { |
24 actor_->SetDelegate(this); | 24 actor_->SetDelegate(this); |
25 remora_controller_->AddObserver(this); | 25 remora_controller_->AddObserver(this); |
26 } | 26 } |
27 | 27 |
28 HostPairingScreen::~HostPairingScreen() { | 28 HostPairingScreen::~HostPairingScreen() { |
29 if (actor_) | 29 if (actor_) |
30 actor_->SetDelegate(NULL); | 30 actor_->SetDelegate(NULL); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void HostPairingScreen::EnrollHost(const std::string& auth_token) { | 99 void HostPairingScreen::EnrollHost(const std::string& auth_token) { |
100 NOTREACHED(); | 100 NOTREACHED(); |
101 } | 101 } |
102 | 102 |
103 void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) { | 103 void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) { |
104 if (actor_ == actor) | 104 if (actor_ == actor) |
105 actor_ = NULL; | 105 actor_ = NULL; |
106 } | 106 } |
107 | 107 |
108 } // namespace chromeos | 108 } // namespace chromeos |
OLD | NEW |