Index: content/browser/bluetooth/bluetooth_dispatcher_host.cc |
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
index b69fa4fa49f19a3632cda132998f947eec1a764d..63fbe785764d0d021aa1a37d0d35bccdeef6ecdc 100644 |
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
@@ -647,6 +647,8 @@ void BluetoothDispatcherHost::OnRequestDevice( |
const std::vector<BluetoothUUID>& optional_services) { |
DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction::REQUEST_DEVICE); |
+ RecordRequestDeviceArguments(filters, optional_services); |
+ |
if (!adapter_.get()) { |
if (BluetoothAdapterFactory::IsBluetoothAdapterAvailable()) { |
BluetoothAdapterFactory::GetAdapter(base::Bind( |
@@ -1141,8 +1143,6 @@ void BluetoothDispatcherHost::OnRequestDeviceImpl( |
const std::vector<BluetoothScanFilter>& filters, |
const std::vector<BluetoothUUID>& optional_services) { |
DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
- RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction::REQUEST_DEVICE); |
- RecordRequestDeviceArguments(filters, optional_services); |
VLOG(1) << "requestDevice called with the following filters: "; |
for (const BluetoothScanFilter& filter : filters) { |