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

Unified Diff: Source/modules/websockets/CloseEvent.h

Issue 185393006: Revert "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/modules/websockets/CloseEvent.h
diff --git a/Source/modules/websockets/CloseEvent.h b/Source/modules/websockets/CloseEvent.h
index a12009393bd347833ea0c943552cfc8efd743236..9256228214e474025856a9644235f21d47eeb92e 100644
--- a/Source/modules/websockets/CloseEvent.h
+++ b/Source/modules/websockets/CloseEvent.h
@@ -50,19 +50,19 @@ struct CloseEventInit : public EventInit {
class CloseEvent FINAL : public Event {
public:
- static PassRefPtrWillBeRawPtr<CloseEvent> create()
+ static PassRefPtr<CloseEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent());
+ return adoptRef(new CloseEvent());
}
- static PassRefPtrWillBeRawPtr<CloseEvent> create(bool wasClean, unsigned short code, const String& reason)
+ static PassRefPtr<CloseEvent> create(bool wasClean, unsigned short code, const String& reason)
{
- return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent(wasClean, code, reason));
+ return adoptRef(new CloseEvent(wasClean, code, reason));
}
- static PassRefPtrWillBeRawPtr<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer)
+ static PassRefPtr<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer)
{
- return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent(type, initializer));
+ return adoptRef(new CloseEvent(type, initializer));
}
bool wasClean() const { return m_wasClean; }

Powered by Google App Engine
This is Rietveld 408576698