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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IndexedDBClient.cpp

Issue 2614143002: Use a new Supplement constructor for LocalFrame's supplements (Closed)
Patch Set: Created 3 years, 11 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/indexeddb/IndexedDBClient.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IndexedDBClient.cpp b/third_party/WebKit/Source/modules/indexeddb/IndexedDBClient.cpp
index 37f8ec0de9c3f971eee0ac06d4504d82b87e0ab2..d5d17f7df2f4656336b16c6109d2ab7c8a25160a 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IndexedDBClient.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IndexedDBClient.cpp
@@ -12,7 +12,11 @@
namespace blink {
-IndexedDBClient::IndexedDBClient() {}
+IndexedDBClient::IndexedDBClient(LocalFrame& frame)
+ : Supplement<LocalFrame>(frame) {}
+
+IndexedDBClient::IndexedDBClient(WorkerClients& clients)
+ : Supplement<WorkerClients>(clients) {}
IndexedDBClient* IndexedDBClient::from(ExecutionContext* context) {
if (context->isDocument())
@@ -35,7 +39,8 @@ DEFINE_TRACE(IndexedDBClient) {
}
void provideIndexedDBClientTo(LocalFrame& frame, IndexedDBClient* client) {
- frame.provideSupplement(IndexedDBClient::supplementName(), client);
+ Supplement<LocalFrame>::provideTo(frame, IndexedDBClient::supplementName(),
+ client);
}
void provideIndexedDBClientToWorker(WorkerClients* clients,

Powered by Google App Engine
This is Rietveld 408576698