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

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

Issue 555003002: Add method for telling the Pairing API that enrollment is complete (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 "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) {
132 }
133
131 void FakeHostPairingController::PairingStageChanged(Stage new_stage) { 134 void FakeHostPairingController::PairingStageChanged(Stage new_stage) {
132 switch (new_stage) { 135 switch (new_stage) {
133 case STAGE_WAITING_FOR_CONTROLLER: { 136 case STAGE_WAITING_FOR_CONTROLLER: {
134 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION); 137 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION);
135 break; 138 break;
136 } 139 }
137 case STAGE_WAITING_FOR_CODE_CONFIRMATION: { 140 case STAGE_WAITING_FOR_CODE_CONFIRMATION: {
138 ChangeStageLater(STAGE_UPDATING); 141 ChangeStageLater(STAGE_UPDATING);
139 break; 142 break;
140 } 143 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 const std::string& lang, 179 const std::string& lang,
177 const std::string& timezone, 180 const std::string& timezone,
178 bool send_reports, 181 bool send_reports,
179 const std::string& keyboard_layout) { 182 const std::string& keyboard_layout) {
180 } 183 }
181 184
182 void FakeHostPairingController::EnrollHost(const std::string& auth_token) { 185 void FakeHostPairingController::EnrollHost(const std::string& auth_token) {
183 } 186 }
184 187
185 } // namespace pairing_chromeos 188 } // 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