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

Unified Diff: Source/modules/speech/SpeechRecognitionError.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/modules/speech/SpeechRecognitionError.h ('k') | Source/modules/speech/SpeechRecognitionEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognitionError.cpp
diff --git a/Source/modules/speech/SpeechRecognitionError.cpp b/Source/modules/speech/SpeechRecognitionError.cpp
index c1eb2a2d8db6aa4562f439be122e77417366dfed..859458459c7beeb29cdc782a58654adba7e06ab6 100644
--- a/Source/modules/speech/SpeechRecognitionError.cpp
+++ b/Source/modules/speech/SpeechRecognitionError.cpp
@@ -56,19 +56,19 @@ static String ErrorCodeToString(SpeechRecognitionError::ErrorCode code)
return String();
}
-PassRefPtr<SpeechRecognitionError> SpeechRecognitionError::create(ErrorCode code, const String& message)
+PassRefPtrWillBeRawPtr<SpeechRecognitionError> SpeechRecognitionError::create(ErrorCode code, const String& message)
{
- return adoptRef(new SpeechRecognitionError(ErrorCodeToString(code), message));
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionError(ErrorCodeToString(code), message));
}
-PassRefPtr<SpeechRecognitionError> SpeechRecognitionError::create()
+PassRefPtrWillBeRawPtr<SpeechRecognitionError> SpeechRecognitionError::create()
{
- return adoptRef(new SpeechRecognitionError(emptyString(), emptyString()));
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionError(emptyString(), emptyString()));
}
-PassRefPtr<SpeechRecognitionError> SpeechRecognitionError::create(const AtomicString& eventName, const SpeechRecognitionErrorInit& initializer)
+PassRefPtrWillBeRawPtr<SpeechRecognitionError> SpeechRecognitionError::create(const AtomicString& eventName, const SpeechRecognitionErrorInit& initializer)
{
- return adoptRef(new SpeechRecognitionError(eventName, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionError(eventName, initializer));
}
SpeechRecognitionError::SpeechRecognitionError(const String& error, const String& message)
« no previous file with comments | « Source/modules/speech/SpeechRecognitionError.h ('k') | Source/modules/speech/SpeechRecognitionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698