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

Unified Diff: Source/core/events/BeforeUnloadEvent.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/events/BeforeTextInsertedEvent.h ('k') | Source/core/events/ClipboardEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/BeforeUnloadEvent.h
diff --git a/Source/core/events/BeforeUnloadEvent.h b/Source/core/events/BeforeUnloadEvent.h
index 87e4bc4f6dd9e65cc9f4f9ae985b1414452d299a..d65fc1ff3a0b1ff08999addc3a34dcd29d05db7b 100644
--- a/Source/core/events/BeforeUnloadEvent.h
+++ b/Source/core/events/BeforeUnloadEvent.h
@@ -33,9 +33,9 @@ class BeforeUnloadEvent FINAL : public Event {
public:
virtual ~BeforeUnloadEvent();
- static PassRefPtr<BeforeUnloadEvent> create()
+ static PassRefPtrWillBeRawPtr<BeforeUnloadEvent> create()
{
- return adoptRef(new BeforeUnloadEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new BeforeUnloadEvent);
}
virtual bool isBeforeUnloadEvent() const OVERRIDE;
« no previous file with comments | « Source/core/events/BeforeTextInsertedEvent.h ('k') | Source/core/events/ClipboardEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698