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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechSynthesisVoice.cpp

Issue 1617383003: Move PlatformSpeechSynthesisVoice off the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix oilpan compilation Created 4 years, 11 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: third_party/WebKit/Source/modules/speech/SpeechSynthesisVoice.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesisVoice.cpp b/third_party/WebKit/Source/modules/speech/SpeechSynthesisVoice.cpp
index b77bd62a5a3f6b3c6fe135ecb234776417412ca5..8b7426d978c4638ffa02630d6099aaec3f0824c6 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechSynthesisVoice.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesisVoice.cpp
@@ -27,19 +27,18 @@
namespace blink {
-SpeechSynthesisVoice* SpeechSynthesisVoice::create(PlatformSpeechSynthesisVoice* voice)
+SpeechSynthesisVoice* SpeechSynthesisVoice::create(PassRefPtr<PlatformSpeechSynthesisVoice> voice)
{
return new SpeechSynthesisVoice(voice);
}
-SpeechSynthesisVoice::SpeechSynthesisVoice(PlatformSpeechSynthesisVoice* voice)
+SpeechSynthesisVoice::SpeechSynthesisVoice(PassRefPtr<PlatformSpeechSynthesisVoice> voice)
: m_platformVoice(voice)
{
}
-DEFINE_TRACE(SpeechSynthesisVoice)
+SpeechSynthesisVoice::~SpeechSynthesisVoice()
{
- visitor->trace(m_platformVoice);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698