Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp |
index 738be8cb23979383753c7d5583b32e006b76e08c..91362dca16bf98c2746be32bdbcdd0fa43e3947c 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp |
@@ -4,13 +4,14 @@ |
#include "modules/bluetooth/BluetoothRemoteGATTDescriptor.h" |
+#include <memory> |
#include "bindings/core/v8/ScriptPromise.h" |
#include "bindings/core/v8/ScriptPromiseResolver.h" |
#include "core/dom/DOMException.h" |
#include "modules/bluetooth/BluetoothError.h" |
+#include "modules/bluetooth/BluetoothMetrics.h" |
#include "modules/bluetooth/BluetoothRemoteGATTService.h" |
#include "modules/bluetooth/BluetoothRemoteGATTUtils.h" |
-#include <memory> |
namespace blink { |
@@ -56,6 +57,9 @@ void BluetoothRemoteGATTDescriptor::ReadValueCallback( |
ScriptPromise BluetoothRemoteGATTDescriptor::readValue( |
ScriptState* scriptState) { |
+ RecordWebBluetoothFunctionCall( |
+ UMAWebBluetoothFunction::DESCRIPTOR_READ_VALUE); |
+ |
if (!GetGatt()->connected()) { |
return ScriptPromise::rejectWithDOMException( |
scriptState, |
@@ -106,6 +110,9 @@ void BluetoothRemoteGATTDescriptor::WriteValueCallback( |
ScriptPromise BluetoothRemoteGATTDescriptor::writeValue( |
ScriptState* scriptState, |
const DOMArrayPiece& value) { |
+ RecordWebBluetoothFunctionCall( |
+ UMAWebBluetoothFunction::DESCRIPTOR_WRITE_VALUE); |
+ |
if (!GetGatt()->connected()) { |
return ScriptPromise::rejectWithDOMException( |
scriptState, |