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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/serviceworkers/ServiceWorkerContainerClient.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
index 0a008227c0ccc20db77200489e8454b52b52159a..f5defc34dd52d90b4d5ceb59c960d3a8b9e9ca4f 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
@@ -37,16 +37,16 @@ ServiceWorkerContainerClient* ServiceWorkerContainerClient::from(ExecutionContex
if (context->isWorkerGlobalScope()) {
WorkerClients* clients = toWorkerGlobalScope(context)->clients();
ASSERT(clients);
- return static_cast<ServiceWorkerContainerClient*>(HeapSupplement<WorkerClients>::from(clients, supplementName()));
+ return static_cast<ServiceWorkerContainerClient*>(Supplement<WorkerClients>::from(clients, supplementName()));
}
Document* document = toDocument(context);
if (!document->frame())
return nullptr;
- ServiceWorkerContainerClient* client = static_cast<ServiceWorkerContainerClient*>(HeapSupplement<Document>::from(document, supplementName()));
+ ServiceWorkerContainerClient* client = static_cast<ServiceWorkerContainerClient*>(Supplement<Document>::from(document, supplementName()));
if (!client) {
client = new ServiceWorkerContainerClient(document->frame()->loader().client()->createServiceWorkerProvider());
- HeapSupplement<Document>::provideTo(*document, supplementName(), client);
+ Supplement<Document>::provideTo(*document, supplementName(), client);
}
return client;
}

Powered by Google App Engine
This is Rietveld 408576698