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

Unified Diff: Source/modules/speech/SpeechGrammar.cpp

Issue 139803012: Move speech module over to Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pull in TraceTrait<RefPtr<T>> template specialization + add trace() over RawPtr<T>s. 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/speech/SpeechGrammar.cpp
diff --git a/Source/modules/speech/SpeechGrammar.cpp b/Source/modules/speech/SpeechGrammar.cpp
index 3b0992b047bf0f7511ba25304bfe2074e48de4eb..eaf63b64625ebf10a79a2f798207a25b9e50bdc2 100644
--- a/Source/modules/speech/SpeechGrammar.cpp
+++ b/Source/modules/speech/SpeechGrammar.cpp
@@ -31,14 +31,16 @@
namespace WebCore {
-PassRefPtr<SpeechGrammar> SpeechGrammar::create()
+DEFINE_GC_INFO(SpeechGrammar);
+
+PassRefPtrWillBeRawPtr<SpeechGrammar> SpeechGrammar::create()
{
- return adoptRef(new SpeechGrammar);
+ return adoptRefWillBeNoop(new SpeechGrammar);
}
-PassRefPtr<SpeechGrammar> SpeechGrammar::create(const KURL& src, double weight)
+PassRefPtrWillBeRawPtr<SpeechGrammar> SpeechGrammar::create(const KURL& src, double weight)
{
- return adoptRef(new SpeechGrammar(src, weight));
+ return adoptRefWillBeNoop(new SpeechGrammar(src, weight));
}
void SpeechGrammar::setSrc(ExecutionContext* executionContext, const String& src)

Powered by Google App Engine
This is Rietveld 408576698