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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h

Issue 2443473003: bluetooth: Require frame to be connected for characteristic.readValue to succeed (Closed)
Patch Set: Fix typo Created 4 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/BluetoothRemoteGATTCharacteristic.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h
index a29f0fa10afa1fc87865d8eebaf7f64ea38e24f0..7e575f874a35606467f8b2cc686b0e0892626724 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h
@@ -96,6 +96,10 @@ class BluetoothRemoteGATTCharacteristic final
RegisteredEventListener&) override;
private:
+ friend class ReadValueCallback;
+
+ BluetoothRemoteGATTServer* gatt() { return m_service->device()->gatt(); }
+
std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic;
Member<BluetoothRemoteGATTService> m_service;
bool m_stopped;

Powered by Google App Engine
This is Rietveld 408576698