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/controller_pairing_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/controller_pairing_screen.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/chromeos/login/wizard_controller.h" | 9 #include "chrome/browser/chromeos/login/wizard_controller.h" |
10 #include "chromeos/chromeos_switches.h" | 10 #include "chromeos/chromeos_switches.h" |
11 #include "chromeos/login/auth/user_context.h" | 11 #include "chromeos/login/auth/user_context.h" |
12 #include "chromeos/pairing/fake_controller_pairing_controller.h" | 12 #include "components/pairing/fake_controller_pairing_controller.h" |
13 #include "google_apis/gaia/gaia_auth_util.h" | 13 #include "google_apis/gaia/gaia_auth_util.h" |
14 | 14 |
15 using namespace chromeos::controller_pairing; | 15 using namespace chromeos::controller_pairing; |
| 16 using namespace pairing_chromeos; |
16 | 17 |
17 namespace chromeos { | 18 namespace chromeos { |
18 | 19 |
19 ControllerPairingScreen::ControllerPairingScreen( | 20 ControllerPairingScreen::ControllerPairingScreen( |
20 ScreenObserver* observer, | 21 ScreenObserver* observer, |
21 ControllerPairingScreenActor* actor) | 22 ControllerPairingScreenActor* actor) |
22 : WizardScreen(observer), | 23 : WizardScreen(observer), |
23 actor_(actor), | 24 actor_(actor), |
24 current_stage_(ControllerPairingController::STAGE_NONE), | 25 current_stage_(ControllerPairingController::STAGE_NONE), |
25 device_preselected_(false) { | 26 device_preselected_(false) { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 ++key) { | 220 ++key) { |
220 if (*key == kContextKeySelectedDevice) { | 221 if (*key == kContextKeySelectedDevice) { |
221 context_.SetBoolean(kContextKeyControlsDisabled, | 222 context_.SetBoolean(kContextKeyControlsDisabled, |
222 context_.GetString(*key).empty()); | 223 context_.GetString(*key).empty()); |
223 CommitContextChanges(); | 224 CommitContextChanges(); |
224 } | 225 } |
225 } | 226 } |
226 } | 227 } |
227 | 228 |
228 } // namespace chromeos | 229 } // namespace chromeos |
OLD | NEW |