Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: chrome/browser/chromeos/login/screens/controller_pairing_screen.cc

Issue 2705363002: cros: Move BaseScreenDelegate::ExitCodes into separate file, ScreenExitCode. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chromeos/login/wizard_controller.h" 10 #include "chrome/browser/chromeos/login/wizard_controller.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 case ControllerPairingController::STAGE_HOST_UPDATE_IN_PROGRESS: { 109 case ControllerPairingController::STAGE_HOST_UPDATE_IN_PROGRESS: {
110 desired_page = kPageHostUpdate; 110 desired_page = kPageHostUpdate;
111 break; 111 break;
112 } 112 }
113 case ControllerPairingController::STAGE_HOST_CONNECTION_LOST: { 113 case ControllerPairingController::STAGE_HOST_CONNECTION_LOST: {
114 desired_page = kPageHostConnectionLost; 114 desired_page = kPageHostConnectionLost;
115 break; 115 break;
116 } 116 }
117 case ControllerPairingController::STAGE_WAITING_FOR_CREDENTIALS: { 117 case ControllerPairingController::STAGE_WAITING_FOR_CREDENTIALS: {
118 shark_controller_->RemoveObserver(this); 118 shark_controller_->RemoveObserver(this);
119 Finish(WizardController::CONTROLLER_PAIRING_FINISHED); 119 Finish(ScreenExitCode::CONTROLLER_PAIRING_FINISHED);
120 desired_page = kPageEnrollmentIntroduction; 120 desired_page = kPageEnrollmentIntroduction;
121 break; 121 break;
122 } 122 }
123 case ControllerPairingController::STAGE_INITIALIZATION_ERROR: { 123 case ControllerPairingController::STAGE_INITIALIZATION_ERROR: {
124 // TODO(achuith, dzhioev, zork): Handle this better. 124 // TODO(achuith, dzhioev, zork): Handle this better.
125 LOG(WARNING) << "Bluetooth initialization error"; 125 LOG(WARNING) << "Bluetooth initialization error";
126 break; 126 break;
127 } 127 }
128 default: 128 default:
129 NOTREACHED(); 129 NOTREACHED();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 ++key) { 209 ++key) {
210 if (*key == kContextKeySelectedDevice) { 210 if (*key == kContextKeySelectedDevice) {
211 context_.SetBoolean(kContextKeyControlsDisabled, 211 context_.SetBoolean(kContextKeyControlsDisabled,
212 context_.GetString(*key).empty()); 212 context_.GetString(*key).empty());
213 CommitContextChanges(); 213 CommitContextChanges();
214 } 214 }
215 } 215 }
216 } 216 }
217 217
218 } // namespace chromeos 218 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698