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

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

Issue 1958393002: Reset BluetoothHostPairingController in an earlier stage for normal user login flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 void FakeHostPairingController::OnEnrollmentStatusChanged( 135 void FakeHostPairingController::OnEnrollmentStatusChanged(
136 EnrollmentStatus enrollment_status) { 136 EnrollmentStatus enrollment_status) {
137 } 137 }
138 138
139 void FakeHostPairingController::SetPermanentId( 139 void FakeHostPairingController::SetPermanentId(
140 const std::string& permanent_id) { 140 const std::string& permanent_id) {
141 } 141 }
142 142
143 void FakeHostPairingController::Reset() {
144 }
145
143 void FakeHostPairingController::PairingStageChanged(Stage new_stage) { 146 void FakeHostPairingController::PairingStageChanged(Stage new_stage) {
144 switch (new_stage) { 147 switch (new_stage) {
145 case STAGE_WAITING_FOR_CONTROLLER: { 148 case STAGE_WAITING_FOR_CONTROLLER: {
146 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION); 149 ChangeStageLater(STAGE_WAITING_FOR_CODE_CONFIRMATION);
147 break; 150 break;
148 } 151 }
149 case STAGE_WAITING_FOR_CODE_CONFIRMATION: { 152 case STAGE_WAITING_FOR_CODE_CONFIRMATION: {
150 ChangeStageLater(STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE); 153 ChangeStageLater(STAGE_WAITING_FOR_CONTROLLER_AFTER_UPDATE);
151 break; 154 break;
152 } 155 }
(...skipping 20 matching lines...) Expand all
173 } 176 }
174 case STAGE_ENROLLMENT_SUCCESS: { 177 case STAGE_ENROLLMENT_SUCCESS: {
175 ChangeStageLater(STAGE_FINISHED); 178 ChangeStageLater(STAGE_FINISHED);
176 break; 179 break;
177 } 180 }
178 default: { break; } 181 default: { break; }
179 } 182 }
180 } 183 }
181 184
182 } // namespace pairing_chromeos 185 } // namespace pairing_chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698