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

Unified Diff: Source/core/speech/SpeechInputEvent.cpp

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/speech/SpeechInputEvent.h ('k') | Source/core/storage/StorageEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/speech/SpeechInputEvent.cpp
diff --git a/Source/core/speech/SpeechInputEvent.cpp b/Source/core/speech/SpeechInputEvent.cpp
index 26d6e2e28611639bfa28d84425cdd8005f2230c7..7a050416cf940d73916ce623a717c9bc382efe11 100644
--- a/Source/core/speech/SpeechInputEvent.cpp
+++ b/Source/core/speech/SpeechInputEvent.cpp
@@ -36,14 +36,14 @@
namespace WebCore {
-PassRefPtr<SpeechInputEvent> SpeechInputEvent::create()
+PassRefPtrWillBeRawPtr<SpeechInputEvent> SpeechInputEvent::create()
{
- return adoptRef(new SpeechInputEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechInputEvent);
}
-PassRefPtr<SpeechInputEvent> SpeechInputEvent::create(const AtomicString& eventType, const SpeechInputResultArray& results)
+PassRefPtrWillBeRawPtr<SpeechInputEvent> SpeechInputEvent::create(const AtomicString& eventType, const SpeechInputResultArray& results)
{
- return adoptRef(new SpeechInputEvent(eventType, results));
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechInputEvent(eventType, results));
}
SpeechInputEvent::SpeechInputEvent()
« no previous file with comments | « Source/core/speech/SpeechInputEvent.h ('k') | Source/core/storage/StorageEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698