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

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

Issue 547503002: Redirect to the enterprise enrollment screen during remora and shark pairing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 case ControllerPairingController::STAGE_HOST_UPDATE_IN_PROGRESS: { 106 case ControllerPairingController::STAGE_HOST_UPDATE_IN_PROGRESS: {
107 desired_page = kPageHostUpdate; 107 desired_page = kPageHostUpdate;
108 break; 108 break;
109 } 109 }
110 case ControllerPairingController::STAGE_HOST_CONNECTION_LOST: { 110 case ControllerPairingController::STAGE_HOST_CONNECTION_LOST: {
111 desired_page = kPageHostConnectionLost; 111 desired_page = kPageHostConnectionLost;
112 break; 112 break;
113 } 113 }
114 case ControllerPairingController::STAGE_WAITING_FOR_CREDENTIALS: { 114 case ControllerPairingController::STAGE_WAITING_FOR_CREDENTIALS: {
115 get_screen_observer()->OnExit(
116 WizardController::CONTROLLER_PAIRING_NEED_ENROLLMENT);
115 desired_page = kPageEnrollmentIntroduction; 117 desired_page = kPageEnrollmentIntroduction;
116 break; 118 break;
117 } 119 }
118 case ControllerPairingController::STAGE_HOST_ENROLLMENT_IN_PROGRESS: { 120 case ControllerPairingController::STAGE_HOST_ENROLLMENT_IN_PROGRESS: {
119 desired_page = kPageHostEnrollment; 121 desired_page = kPageHostEnrollment;
120 break; 122 break;
121 } 123 }
122 case ControllerPairingController::STAGE_HOST_ENROLLMENT_ERROR: { 124 case ControllerPairingController::STAGE_HOST_ENROLLMENT_ERROR: {
123 desired_page = kPageHostEnrollmentError; 125 desired_page = kPageHostEnrollmentError;
124 break; 126 break;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 ++key) { 220 ++key) {
219 if (*key == kContextKeySelectedDevice) { 221 if (*key == kContextKeySelectedDevice) {
220 context_.SetBoolean(kContextKeyControlsDisabled, 222 context_.SetBoolean(kContextKeyControlsDisabled,
221 context_.GetString(*key).empty()); 223 context_.GetString(*key).empty());
222 CommitContextChanges(); 224 CommitContextChanges();
223 } 225 }
224 } 226 }
225 } 227 }
226 228
227 } // namespace chromeos 229 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698