summaryrefslogtreecommitdiffstats
path: root/components/pairing
diff options
context:
space:
mode:
authorachuith <achuith@chromium.org>2014-10-01 14:07:51 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-01 21:08:09 +0000
commit55944e77b27856b2b1baba1990d494693e20723d (patch)
treea65fd0a74708ab2a0e837deedb16fcffe1e03b55 /components/pairing
parent4e268a3267dc49723cc39cc1e952fbe5f6ef594a (diff)
downloadchromium_src-55944e77b27856b2b1baba1990d494693e20723d.zip
chromium_src-55944e77b27856b2b1baba1990d494693e20723d.tar.gz
chromium_src-55944e77b27856b2b1baba1990d494693e20723d.tar.bz2
Update comments and logging.
BUG= Review URL: https://codereview.chromium.org/608753002 Cr-Commit-Position: refs/heads/master@{#297707}
Diffstat (limited to 'components/pairing')
-rw-r--r--components/pairing/bluetooth_controller_pairing_controller.cc3
-rw-r--r--components/pairing/bluetooth_host_pairing_controller.cc1
2 files changed, 3 insertions, 1 deletions
diff --git a/components/pairing/bluetooth_controller_pairing_controller.cc b/components/pairing/bluetooth_controller_pairing_controller.cc
index 05285c8..4c4d855 100644
--- a/components/pairing/bluetooth_controller_pairing_controller.cc
+++ b/components/pairing/bluetooth_controller_pairing_controller.cc
@@ -46,6 +46,7 @@ device::BluetoothDevice* BluetoothControllerPairingController::GetController() {
void BluetoothControllerPairingController::ChangeStage(Stage new_stage) {
if (current_stage_ == new_stage)
return;
+ VLOG(1) << "ChangeStage " << new_stage;
current_stage_ = new_stage;
FOR_EACH_OBSERVER(ControllerPairingController::Observer, observers_,
PairingStageChanged(new_stage));
@@ -356,7 +357,6 @@ void BluetoothControllerPairingController::StartSession() {
ChangeStage(STAGE_FINISHED);
}
-// ProtoDecoder::Observer:
void BluetoothControllerPairingController::OnHostStatusMessage(
const pairing_api::HostStatus& message) {
if (got_initial_status_) {
@@ -377,6 +377,7 @@ void BluetoothControllerPairingController::OnHostStatusMessage(
got_initial_status_ = true;
// TODO(zork): Check domain. (http://crbug.com/405761)
+ // TODO(achuith): Need STAGE_HOST_UPDATE_IN_PROGRESS here.
ChangeStage(STAGE_WAITING_FOR_CREDENTIALS);
}
}
diff --git a/components/pairing/bluetooth_host_pairing_controller.cc b/components/pairing/bluetooth_host_pairing_controller.cc
index f30c3ec..75308e2 100644
--- a/components/pairing/bluetooth_host_pairing_controller.cc
+++ b/components/pairing/bluetooth_host_pairing_controller.cc
@@ -35,6 +35,7 @@ BluetoothHostPairingController::~BluetoothHostPairingController() {
void BluetoothHostPairingController::ChangeStage(Stage new_stage) {
if (current_stage_ == new_stage)
return;
+ VLOG(1) << "ChangeStage " << new_stage;
current_stage_ = new_stage;
FOR_EACH_OBSERVER(Observer, observers_, PairingStageChanged(new_stage));
}