Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothGATTService.cpp

Issue 1399623003: bluetooth: Change BluetoothSupplement::from(ScriptState*) to from(LocalFrame*) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Add assert for supplement and changed to use executionContext Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/bluetooth/BluetoothGATTService.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTService.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTService.cpp
index a0afc007d0338f009bfff4a10ebddb6b96d14a53..bdcfe907952c7acf0b3b508bacb238b6fe3d3232 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTService.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTService.cpp
@@ -34,7 +34,7 @@ BluetoothGATTService* BluetoothGATTService::take(ScriptPromiseResolver*, PassOwn
ScriptPromise BluetoothGATTService::getCharacteristic(ScriptState* scriptState,
const StringOrUnsignedLong& characteristic, ExceptionState& exceptionState)
{
- WebBluetooth* webbluetooth = BluetoothSupplement::from(scriptState);
+ WebBluetooth* webbluetooth = BluetoothSupplement::fromScriptState(scriptState);
String characteristicUUID = BluetoothUUID::getCharacteristic(characteristic, exceptionState);
if (exceptionState.hadException())

Powered by Google App Engine
This is Rietveld 408576698