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

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

Issue 478693005: Oilpan: Ship Oilpan for serviceworkers/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/ServiceWorkerClients.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerClients.cpp b/Source/modules/serviceworkers/ServiceWorkerClients.cpp
index 499ae85fe11dd607ca61c6ac1fe6c471015fe7ad..d01716b08e831f2d98753ff80a88eac4d7752596 100644
--- a/Source/modules/serviceworkers/ServiceWorkerClients.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerClients.cpp
@@ -22,10 +22,10 @@ namespace {
class ClientArray {
public:
typedef blink::WebServiceWorkerClientsInfo WebType;
- static WillBeHeapVector<RefPtrWillBeMember<ServiceWorkerClient> > take(ScriptPromiseResolver*, WebType* webClientsRaw)
+ static HeapVector<Member<ServiceWorkerClient> > take(ScriptPromiseResolver*, WebType* webClientsRaw)
{
OwnPtr<WebType> webClients = adoptPtr(webClientsRaw);
- WillBeHeapVector<RefPtrWillBeMember<ServiceWorkerClient> > clients;
+ HeapVector<Member<ServiceWorkerClient> > clients;
for (size_t i = 0; i < webClients->clientIDs.size(); ++i) {
clients.append(ServiceWorkerClient::create(webClients->clientIDs[i]));
}
@@ -43,9 +43,9 @@ namespace {
} // namespace
-PassRefPtrWillBeRawPtr<ServiceWorkerClients> ServiceWorkerClients::create()
+ServiceWorkerClients* ServiceWorkerClients::create()
{
- return adoptRefWillBeNoop(new ServiceWorkerClients());
+ return new ServiceWorkerClients();
}
ServiceWorkerClients::ServiceWorkerClients()
@@ -53,8 +53,6 @@ ServiceWorkerClients::ServiceWorkerClients()
ScriptWrappable::init(this);
}
-DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ServiceWorkerClients);
-
ScriptPromise ServiceWorkerClients::getAll(ScriptState* scriptState, const Dictionary& options)
{
RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerClients.h ('k') | Source/modules/serviceworkers/ServiceWorkerClients.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698