summaryrefslogtreecommitdiffstats
path: root/components/pairing/bluetooth_host_pairing_controller.cc
diff options
context:
space:
mode:
authorachuith <achuith@chromium.org>2014-10-14 18:07:13 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-15 01:07:29 +0000
commit76ebe81c525cad2d1707a4e1569a11123478baeb (patch)
tree27439884afb0aab1a5a18e4a17b6f15997ac65de /components/pairing/bluetooth_host_pairing_controller.cc
parent3044c2b06b9a5c651f744cb3f469844bea78d66a (diff)
downloadchromium_src-76ebe81c525cad2d1707a4e1569a11123478baeb.zip
chromium_src-76ebe81c525cad2d1707a4e1569a11123478baeb.tar.gz
chromium_src-76ebe81c525cad2d1707a4e1569a11123478baeb.tar.bz2
Rename STAGE_PAIRING_DONE to STAGE_ENROLLMENT_SUCCESS
STAGE_PAIRING_DONE is not handled by HostPairingScreen. Change generic controller to shark_controller or remora_controller as appropriate. BUG=418061 TEST=compiles. Review URL: https://codereview.chromium.org/651303004 Cr-Commit-Position: refs/heads/master@{#299608}
Diffstat (limited to 'components/pairing/bluetooth_host_pairing_controller.cc')
-rw-r--r--components/pairing/bluetooth_host_pairing_controller.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/pairing/bluetooth_host_pairing_controller.cc b/components/pairing/bluetooth_host_pairing_controller.cc
index d5319c9..dc857c2 100644
--- a/components/pairing/bluetooth_host_pairing_controller.cc
+++ b/components/pairing/bluetooth_host_pairing_controller.cc
@@ -326,7 +326,7 @@ void BluetoothHostPairingController::OnPairDevicesMessage(
void BluetoothHostPairingController::OnCompleteSetupMessage(
const pairing_api::CompleteSetup& message) {
DCHECK(thread_checker_.CalledOnValidThread());
- if (current_stage_ != STAGE_PAIRING_DONE) {
+ if (current_stage_ != STAGE_ENROLLMENT_SUCCESS) {
AbortWithError(PAIRING_ERROR_PAIRING_OR_ENROLLMENT, kErrorInvalidProtocol);
return;
}
@@ -404,10 +404,10 @@ void BluetoothHostPairingController::OnEnrollmentStatusChanged(
enrollment_status_ = enrollment_status;
if (enrollment_status == ENROLLMENT_STATUS_SUCCESS) {
- ChangeStage(STAGE_PAIRING_DONE);
+ ChangeStage(STAGE_ENROLLMENT_SUCCESS);
} else if (enrollment_status == ENROLLMENT_STATUS_FAILURE) {
- AbortWithError(PAIRING_ERROR_PAIRING_OR_ENROLLMENT,
- kErrorEnrollmentFailed);
+ AbortWithError(PAIRING_ERROR_PAIRING_OR_ENROLLMENT,
+ kErrorEnrollmentFailed);
}
SendHostStatus();
}