From 11ba3511e22a3ec614d89220ff347de1b3432b48 Mon Sep 17 00:00:00 2001 From: "jennyz@chromium.org" Date: Thu, 28 Mar 2013 01:35:28 +0000 Subject: Fix the bluetooth StartDiscovery issue. BUG=224140 Review URL: https://chromiumcodereview.appspot.com/12928007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191089 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/system/bluetooth/tray_bluetooth.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ash/system/bluetooth/tray_bluetooth.cc b/ash/system/bluetooth/tray_bluetooth.cc index eb1e017..7c07e27 100644 --- a/ash/system/bluetooth/tray_bluetooth.cc +++ b/ash/system/bluetooth/tray_bluetooth.cc @@ -107,12 +107,13 @@ class BluetoothDetailedView : public TrayDetailsView, ash::Shell::GetInstance()->system_tray_delegate(); bool bluetooth_enabled = delegate->GetBluetoothEnabled(); if (!bluetooth_discovering_ && bluetooth_enabled) { + bluetooth_discovering_ = true; delegate->BluetoothStartDiscovering(); throbber_->Start(); } else if(!bluetooth_enabled) { + bluetooth_discovering_ = false; throbber_->Stop(); } - bluetooth_discovering_ = bluetooth_enabled; } void BluetoothStopDiscovering() { -- cgit v1.1