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

Side by Side Diff: components/pairing/fake_host_pairing_controller.cc

Issue 652743003: Fix update and enrollment flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: indent Created 6 years, 2 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 "components/pairing/fake_host_pairing_controller.h" 5 #include "components/pairing/fake_host_pairing_controller.h"
6 6
7 #include <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 std::string FakeHostPairingController::GetEnrollmentDomain() { 123 std::string FakeHostPairingController::GetEnrollmentDomain() {
124 return enrollment_domain_; 124 return enrollment_domain_;
125 } 125 }
126 126
127 void FakeHostPairingController::OnUpdateStatusChanged( 127 void FakeHostPairingController::OnUpdateStatusChanged(
128 UpdateStatus update_status) { 128 UpdateStatus update_status) {
129 } 129 }
130 130
131 void FakeHostPairingController::SetEnrollmentComplete(bool success) { 131 void FakeHostPairingController::OnEnrollmentStatusChanged(
132 EnrollmentStatus enrollment_status) {
132 } 133 }
133 134
134 void FakeHostPairingController::PairingStageChanged(Stage new_stage) { 135 void FakeHostPairingController::PairingStageChanged(Stage new_stage) {
135 switch (new_stage) { 136 switch (new_stage) {
136 case STAGE_WAITING_FOR_CONTROLLER: { 137 case STAGE_WAITING_FOR_CONTROLLER: {
137 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION); 138 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION);
138 break; 139 break;
139 } 140 }
140 case STAGE_WAITING_FOR_CODE_CONFIRMATION: { 141 case STAGE_WAITING_FOR_CODE_CONFIRMATION: {
141 ChangeStageLater(STAGE_UPDATING); 142 ChangeStageLater(STAGE_UPDATING);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const std::string& lang, 180 const std::string& lang,
180 const std::string& timezone, 181 const std::string& timezone,
181 bool send_reports, 182 bool send_reports,
182 const std::string& keyboard_layout) { 183 const std::string& keyboard_layout) {
183 } 184 }
184 185
185 void FakeHostPairingController::EnrollHost(const std::string& auth_token) { 186 void FakeHostPairingController::EnrollHost(const std::string& auth_token) {
186 } 187 }
187 188
188 } // namespace pairing_chromeos 189 } // namespace pairing_chromeos
OLDNEW
« no previous file with comments | « components/pairing/fake_host_pairing_controller.h ('k') | components/pairing/host_pairing_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698