diff options
author | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-28 01:35:28 +0000 |
---|---|---|
committer | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-28 01:35:28 +0000 |
commit | 11ba3511e22a3ec614d89220ff347de1b3432b48 (patch) | |
tree | dee80cf999ceb32d006e47ac49c25c527853923d | |
parent | 08e2f7c639bb96f28df6d3149e7915ef668261f0 (diff) | |
download | chromium_src-11ba3511e22a3ec614d89220ff347de1b3432b48.zip chromium_src-11ba3511e22a3ec614d89220ff347de1b3432b48.tar.gz chromium_src-11ba3511e22a3ec614d89220ff347de1b3432b48.tar.bz2 |
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
-rw-r--r-- | ash/system/bluetooth/tray_bluetooth.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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() { |