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

Unified Diff: third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 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: third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp b/third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp
index 01fda88de8800b7e1f85c7aa94ae76aea19418e0..b50912b0b40ab33e965f9bda5fd0677e48aa0fe2 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp
+++ b/third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp
@@ -48,7 +48,7 @@ KURL PushSubscription::endpoint() const
return m_endpoint;
}
-PassRefPtr<DOMArrayBuffer> PushSubscription::getKey(const AtomicString& name) const
+DOMArrayBuffer* PushSubscription::getKey(const AtomicString& name) const
{
if (name == "p256dh")
return m_p256dh;
@@ -90,6 +90,8 @@ ScriptValue PushSubscription::toJSONForBinding(ScriptState* scriptState)
DEFINE_TRACE(PushSubscription)
{
+ visitor->trace(m_p256dh);
+ visitor->trace(m_auth);
visitor->trace(m_serviceWorkerRegistration);
}

Powered by Google App Engine
This is Rietveld 408576698