| Index: chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc
|
| diff --git a/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc b/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc
|
| index 36ee5f14809dc83c5e3c321f10ed9071174d9e81..6690ef8020b38bcecaf474838ade40f84ff6129d 100644
|
| --- a/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc
|
| +++ b/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "chrome/browser/extensions/chrome_extension_chooser_dialog.h"
|
| #include "chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h"
|
| +#include "content/browser/bluetooth/bluetooth_device_chooser_controller.h"
|
| #include "content/public/browser/web_contents.h"
|
|
|
| ChromeExtensionBluetoothChooser::ChromeExtensionBluetoothChooser(
|
| @@ -42,7 +43,9 @@ void ChromeExtensionBluetoothChooser::AddOrUpdateDevice(
|
| const int8_t* rssi) {
|
| bluetooth_chooser_controller_->AddOrUpdateDevice(
|
| device_id, should_update_name, device_name, is_gatt_connected, is_paired,
|
| - rssi);
|
| + rssi ? content::BluetoothDeviceChooserController::
|
| + CalculateSignalStrengthLevel(*rssi)
|
| + : -1);
|
| }
|
|
|
| void ChromeExtensionBluetoothChooser::RemoveDevice(
|
|
|