| Index: third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.cpp b/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.cpp
|
| index 729787771e915ea552998ffae596330089c71c02..9cc5c8f2828369719ea46ee061bc124a3dc8524a 100644
|
| --- a/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.cpp
|
| +++ b/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.cpp
|
| @@ -60,37 +60,36 @@ void PlatformSpeechSynthesizer::speak(PlatformSpeechSynthesisUtterance* utteranc
|
|
|
| void PlatformSpeechSynthesizer::pause()
|
| {
|
| - if (m_webSpeechSynthesizer.get())
|
| + if (m_webSpeechSynthesizer)
|
| m_webSpeechSynthesizer->pause();
|
| }
|
|
|
| void PlatformSpeechSynthesizer::resume()
|
| {
|
| - if (m_webSpeechSynthesizer.get())
|
| + if (m_webSpeechSynthesizer)
|
| m_webSpeechSynthesizer->resume();
|
| }
|
|
|
| void PlatformSpeechSynthesizer::cancel()
|
| {
|
| - if (m_webSpeechSynthesizer.get())
|
| + if (m_webSpeechSynthesizer)
|
| m_webSpeechSynthesizer->cancel();
|
| }
|
|
|
| -void PlatformSpeechSynthesizer::setVoiceList(HeapVector<Member<PlatformSpeechSynthesisVoice>>& voices)
|
| +void PlatformSpeechSynthesizer::setVoiceList(Vector<RefPtr<PlatformSpeechSynthesisVoice>>& voices)
|
| {
|
| m_voiceList = voices;
|
| }
|
|
|
| void PlatformSpeechSynthesizer::initializeVoiceList()
|
| {
|
| - if (m_webSpeechSynthesizer.get())
|
| + if (m_webSpeechSynthesizer)
|
| m_webSpeechSynthesizer->updateVoiceList();
|
| }
|
|
|
| DEFINE_TRACE(PlatformSpeechSynthesizer)
|
| {
|
| visitor->trace(m_speechSynthesizerClient);
|
| - visitor->trace(m_voiceList);
|
| visitor->trace(m_webSpeechSynthesizerClient);
|
| }
|
|
|
|
|