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

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

Issue 1519883003: 1) Add basic configuration (network connection, language, keyboard layout, timezone) setup page. 2)… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the i18n-content HTML format in the html files Created 5 years 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/helper.cc ('k') | chrome/browser/chromeos/login/screens/host_pairing_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698