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

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

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 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/BluetoothSupplement.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
index a723e72fb5941fa965d289c3946897896d4aa6f5..d59c1f53852e46301ebfc9526eecc60bb76058bf 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
@@ -13,14 +13,15 @@ const char* BluetoothSupplement::supplementName()
return "BluetoothSupplement";
}
-BluetoothSupplement::BluetoothSupplement(WebBluetooth* bluetooth)
- : m_bluetooth(bluetooth)
+BluetoothSupplement::BluetoothSupplement(WebBluetooth* bluetooth, LocalFrame& frame)
+ : Supplement<LocalFrame>(frame)
+ , m_bluetooth(bluetooth)
{
}
void BluetoothSupplement::provideTo(LocalFrame& frame, WebBluetooth* bluetooth)
{
- BluetoothSupplement* bluetoothSupplement = new BluetoothSupplement(bluetooth);
+ BluetoothSupplement* bluetoothSupplement = new BluetoothSupplement(bluetooth, frame);
Supplement<LocalFrame>::provideTo(frame, supplementName(), bluetoothSupplement);
};

Powered by Google App Engine
This is Rietveld 408576698