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

Unified Diff: Source/core/storage/StorageEvent.cpp

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/storage/StorageEvent.cpp
diff --git a/Source/core/storage/StorageEvent.cpp b/Source/core/storage/StorageEvent.cpp
index ddcd7d831a57d4680d0c136d0a2ef48bfb4d4263..5663a3c678c60a6ef45a6ad05a89a7cbdbf35682 100644
--- a/Source/core/storage/StorageEvent.cpp
+++ b/Source/core/storage/StorageEvent.cpp
@@ -35,9 +35,9 @@ StorageEventInit::StorageEventInit()
{
}
-PassRefPtr<StorageEvent> StorageEvent::create()
+PassRefPtrWillBeRawPtr<StorageEvent> StorageEvent::create()
{
- return adoptRef(new StorageEvent);
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new StorageEvent);
}
StorageEvent::StorageEvent()
@@ -49,14 +49,14 @@ StorageEvent::~StorageEvent()
{
}
-PassRefPtr<StorageEvent> StorageEvent::create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& url, Storage* storageArea)
+PassRefPtrWillBeRawPtr<StorageEvent> StorageEvent::create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& url, Storage* storageArea)
{
- return adoptRef(new StorageEvent(type, key, oldValue, newValue, url, storageArea));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new StorageEvent(type, key, oldValue, newValue, url, storageArea));
}
-PassRefPtr<StorageEvent> StorageEvent::create(const AtomicString& type, const StorageEventInit& initializer)
+PassRefPtrWillBeRawPtr<StorageEvent> StorageEvent::create(const AtomicString& type, const StorageEventInit& initializer)
{
- return adoptRef(new StorageEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new StorageEvent(type, initializer));
}
StorageEvent::StorageEvent(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& url, Storage* storageArea)

Powered by Google App Engine
This is Rietveld 408576698