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

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

Issue 163493003: Revert of Move speech module over to Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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/speech/SpeechRecognitionResultList.cpp
diff --git a/Source/modules/speech/SpeechRecognitionResultList.cpp b/Source/modules/speech/SpeechRecognitionResultList.cpp
index 69a81c8d22c6a3bbb18c468c9581bc264b9efe39..7327bf7f7f3707ac484af9e323ddcafbeb8a5e96 100644
--- a/Source/modules/speech/SpeechRecognitionResultList.cpp
+++ b/Source/modules/speech/SpeechRecognitionResultList.cpp
@@ -29,11 +29,9 @@
namespace WebCore {
-DEFINE_GC_INFO(SpeechRecognitionResultList);
-
-PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> SpeechRecognitionResultList::create(const Vector<RefPtr<SpeechRecognitionResult> >& results)
+PassRefPtr<SpeechRecognitionResultList> SpeechRecognitionResultList::create(const Vector<RefPtr<SpeechRecognitionResult> >& results)
{
- return adoptRefWillBeNoop(new SpeechRecognitionResultList(results));
+ return adoptRef(new SpeechRecognitionResultList(results));
}
SpeechRecognitionResult* SpeechRecognitionResultList::item(unsigned long index)
@@ -45,21 +43,9 @@
}
SpeechRecognitionResultList::SpeechRecognitionResultList(const Vector<RefPtr<SpeechRecognitionResult> >& results)
-#if !ENABLE(OILPAN)
: m_results(results)
-#endif
{
ScriptWrappable::init(this);
-#if ENABLE(OILPAN)
- m_results.grow(results.size());
- for (size_t i = 0; i < results.size(); i++)
- m_results[i] = results[i].get();
-#endif
-}
-
-void SpeechRecognitionResultList::trace(Visitor* visitor)
-{
- visitor->trace(m_results);
}
} // namespace WebCore
« no previous file with comments | « Source/modules/speech/SpeechRecognitionResultList.h ('k') | Source/modules/speech/SpeechRecognitionResultList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698