| Index: content/browser/bluetooth/bluetooth_device_chooser_controller.cc
|
| diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
|
| index 082d1e8b42f0aad21f6cd7546f85663df1f7df26..874eee502c7a9e4b0d55825ea4b4ac28d9151f03 100644
|
| --- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
|
| +++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
|
| @@ -54,7 +54,7 @@ constexpr size_t kMaxLengthForDeviceName =
|
| 29; // max length of device name in filter.
|
|
|
| // The duration of a Bluetooth Scan in seconds.
|
| -constexpr int kScanDuration = 10;
|
| +constexpr int kScanDuration = 60;
|
| constexpr int kTestScanDuration = 0;
|
|
|
| void LogRequestDeviceOptions(
|
| @@ -197,10 +197,7 @@ UMARequestDeviceOutcome OutcomeFromChooserEvent(BluetoothChooser::Event event) {
|
| NOTREACHED();
|
| return UMARequestDeviceOutcome::SUCCESS;
|
| case BluetoothChooser::Event::RESCAN:
|
| - // Rescanning doesn't result in a IPC message for the request being sent
|
| - // so no need to histogram it.
|
| - NOTREACHED();
|
| - return UMARequestDeviceOutcome::SUCCESS;
|
| + return UMARequestDeviceOutcome::BLUETOOTH_CHOOSER_RESCAN;
|
| }
|
| NOTREACHED();
|
| return UMARequestDeviceOutcome::SUCCESS;
|
| @@ -486,6 +483,7 @@ void BluetoothDeviceChooserController::OnBluetoothChooserEvent(
|
|
|
| switch (event) {
|
| case BluetoothChooser::Event::RESCAN:
|
| + RecordRequestDeviceOutcome(OutcomeFromChooserEvent(event));
|
| PopulateConnectedDevices();
|
| DCHECK(chooser_);
|
| StartDeviceDiscovery();
|
|
|