Commit ce8d264d authored by bryeung@chromium.org's avatar bryeung@chromium.org

Extensions: Add missing SendResponse to API call.

GetDevicesWithServiceName was missing a SendResponse when there were no
bluetooth devices known to the system.

TEST=manually via my demo app
BUG=119473


Review URL: http://codereview.chromium.org/10228006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133960 0039d316-1c4b-4281-b951-d872f2087c98
parent 173abf0f
...@@ -128,9 +128,10 @@ bool BluetoothGetDevicesWithServiceNameFunction::RunImpl() { ...@@ -128,9 +128,10 @@ bool BluetoothGetDevicesWithServiceNameFunction::RunImpl() {
callbacks_pending_++; callbacks_pending_++;
} }
if (callbacks_pending_) { if (callbacks_pending_)
AddRef(); // Released in AddDeviceIfTrue when callbacks_pending_ == 0 AddRef(); // Released in AddDeviceIfTrue when callbacks_pending_ == 0
} else
SendResponse(true);
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment