Index: chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
index c57289ac523dbbe99d6646bc4fc120e4c046c27e..3bb283966a60a5ab7294dabacab2c19708028d88 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
@@ -128,9 +128,10 @@ bool BluetoothGetDevicesWithServiceNameFunction::RunImpl() { |
callbacks_pending_++; |
} |
- if (callbacks_pending_) { |
+ if (callbacks_pending_) |
AddRef(); // Released in AddDeviceIfTrue when callbacks_pending_ == 0 |
- } |
+ else |
+ SendResponse(true); |
return true; |
} |