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

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

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 6 years, 8 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: Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp b/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
index 723ba2cd6d94deb75adcc789c7509639645b0473..ef67e77668df7df79e11b6d9a97323c57a677607 100644
--- a/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
@@ -14,9 +14,9 @@
namespace WebCore {
-PassOwnPtr<ServiceWorkerContainerClient> ServiceWorkerContainerClient::create(PassOwnPtr<blink::WebServiceWorkerProvider> provider)
+PassOwnPtrWillBeRawPtr<ServiceWorkerContainerClient> ServiceWorkerContainerClient::create(PassOwnPtr<blink::WebServiceWorkerProvider> provider)
{
- return adoptPtr(new ServiceWorkerContainerClient(provider));
+ return adoptPtrWillBeNoop(new ServiceWorkerContainerClient(provider));
}
ServiceWorkerContainerClient::~ServiceWorkerContainerClient()
@@ -45,7 +45,7 @@ ServiceWorkerContainerClient* ServiceWorkerContainerClient::from(ExecutionContex
}
ASSERT(context->isWorkerGlobalScope());
- return static_cast<ServiceWorkerContainerClient*>(Supplement<WorkerClients>::from(toWorkerGlobalScope(context)->clients(), supplementName()));
+ return static_cast<ServiceWorkerContainerClient*>(WillBeHeapSupplement<WorkerClients>::from(toWorkerGlobalScope(context)->clients(), supplementName()));
}
ServiceWorkerContainerClient::ServiceWorkerContainerClient(PassOwnPtr<blink::WebServiceWorkerProvider> provider)

Powered by Google App Engine
This is Rietveld 408576698