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

Unified Diff: Source/core/html/track/TrackEvent.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/core/html/track/TrackEvent.h
diff --git a/Source/core/html/track/TrackEvent.h b/Source/core/html/track/TrackEvent.h
index 15dc425464462c28cf2fe5fe2a8422864acd6ebf..b868838728e84dfd52f5fe2e0f63de3e62149f6e 100644
--- a/Source/core/html/track/TrackEvent.h
+++ b/Source/core/html/track/TrackEvent.h
@@ -41,14 +41,14 @@ class TrackEvent FINAL : public Event {
public:
virtual ~TrackEvent();
- static PassRefPtr<TrackEvent> create()
+ static PassRefPtrWillBeRawPtr<TrackEvent> create()
{
- return adoptRef(new TrackEvent);
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new TrackEvent);
}
- static PassRefPtr<TrackEvent> create(const AtomicString& type, const TrackEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<TrackEvent> create(const AtomicString& type, const TrackEventInit& initializer)
{
- return adoptRef(new TrackEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new TrackEvent(type, initializer));
}
virtual const AtomicString& interfaceName() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698