| 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 "google_apis/gaia/gaia_auth_util.h" | 10 #include "google_apis/gaia/gaia_auth_util.h" | 
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 95       break; | 95       break; | 
| 96     } | 96     } | 
| 97     case ControllerPairingController::STAGE_WAITING_FOR_CODE_CONFIRMATION: { | 97     case ControllerPairingController::STAGE_WAITING_FOR_CODE_CONFIRMATION: { | 
| 98       desired_page = kPageCodeConfirmation; | 98       desired_page = kPageCodeConfirmation; | 
| 99       context_.SetString(kContextKeyConfirmationCode, | 99       context_.SetString(kContextKeyConfirmationCode, | 
| 100                          shark_controller_->GetConfirmationCode()); | 100                          shark_controller_->GetConfirmationCode()); | 
| 101       break; | 101       break; | 
| 102     } | 102     } | 
| 103     case ControllerPairingController::STAGE_PAIRING_DONE: { | 103     case ControllerPairingController::STAGE_PAIRING_DONE: { | 
| 104       if (delegate_) { | 104       if (delegate_) { | 
|  | 105         delegate_->SetHostConfiguration(); | 
| 105         delegate_->SetHostNetwork(); | 106         delegate_->SetHostNetwork(); | 
| 106         delegate_->SetHostConfiguration(); |  | 
| 107       } | 107       } | 
| 108       break; | 108       break; | 
| 109     } | 109     } | 
| 110     case ControllerPairingController::STAGE_HOST_UPDATE_IN_PROGRESS: { | 110     case ControllerPairingController::STAGE_HOST_UPDATE_IN_PROGRESS: { | 
| 111       desired_page = kPageHostUpdate; | 111       desired_page = kPageHostUpdate; | 
| 112       break; | 112       break; | 
| 113     } | 113     } | 
| 114     case ControllerPairingController::STAGE_HOST_CONNECTION_LOST: { | 114     case ControllerPairingController::STAGE_HOST_CONNECTION_LOST: { | 
| 115       desired_page = kPageHostConnectionLost; | 115       desired_page = kPageHostConnectionLost; | 
| 116       break; | 116       break; | 
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 212        ++key) { | 212        ++key) { | 
| 213     if (*key == kContextKeySelectedDevice) { | 213     if (*key == kContextKeySelectedDevice) { | 
| 214       context_.SetBoolean(kContextKeyControlsDisabled, | 214       context_.SetBoolean(kContextKeyControlsDisabled, | 
| 215                           context_.GetString(*key).empty()); | 215                           context_.GetString(*key).empty()); | 
| 216       CommitContextChanges(); | 216       CommitContextChanges(); | 
| 217     } | 217     } | 
| 218   } | 218   } | 
| 219 } | 219 } | 
| 220 | 220 | 
| 221 }  // namespace chromeos | 221 }  // namespace chromeos | 
| OLD | NEW | 
|---|