| 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/bluetooth_host_pairing_controller.h" | 9 #include "components/pairing/bluetooth_host_pairing_controller.h" |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const std::string& timezone, | 115 const std::string& timezone, |
| 116 bool send_reports, | 116 bool send_reports, |
| 117 const std::string& keyboard_layout) { | 117 const std::string& keyboard_layout) { |
| 118 // TODO(zork): Get configuration from UI and send to Host. | 118 // TODO(zork): Get configuration from UI and send to Host. |
| 119 // (http://crbug.com/405744) | 119 // (http://crbug.com/405744) |
| 120 } | 120 } |
| 121 | 121 |
| 122 void HostPairingScreen::EnrollHost(const std::string& auth_token) { | 122 void HostPairingScreen::EnrollHost(const std::string& auth_token) { |
| 123 // TODO(zork,achuith): Enroll device, send error on error. | 123 // TODO(zork,achuith): Enroll device, send error on error. |
| 124 // (http://crbug.com/374990) | 124 // (http://crbug.com/374990) |
| 125 controller_->SetEnrollmentComplete(true); |
| 125 } | 126 } |
| 126 | 127 |
| 127 void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) { | 128 void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) { |
| 128 if (actor_ == actor) | 129 if (actor_ == actor) |
| 129 actor_ = NULL; | 130 actor_ = NULL; |
| 130 } | 131 } |
| 131 | 132 |
| 132 } // namespace chromeos | 133 } // namespace chromeos |
| OLD | NEW |