Chromium Code Reviews| Index: third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp |
| diff --git a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp |
| index 1f96255ff921faffac946308105b34ca2a683cea..772092eac1503f2caeda5d5b5eef8465171114d6 100644 |
| --- a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp |
| +++ b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp |
| @@ -9,6 +9,7 @@ |
| #include "bindings/core/v8/ScriptPromiseResolver.h" |
| #include "core/dom/DOMException.h" |
| #include "core/dom/ExceptionCode.h" |
| +#include "core/frame/UseCounter.h" |
| #include "modules/bluetooth/BluetoothDevice.h" |
| #include "modules/bluetooth/BluetoothError.h" |
| #include "modules/bluetooth/BluetoothSupplement.h" |
| @@ -176,6 +177,7 @@ ScriptPromise Bluetooth::requestDevice(ScriptState* scriptState, |
| webbluetooth->requestDevice( |
| webOptions, |
| new CallbackPromiseAdapter<BluetoothDevice, BluetoothError>(resolver)); |
| + UseCounter::count(context, UseCounter::WebBluetoothRequestDevice); |
|
scheib
2016/10/28 23:20:35
Instead of using this here, use IDL MeasureAs exte
juncai
2016/10/28 23:49:45
Done.
|
| return promise; |
| } |