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 9cc5c8f2828369719ea46ee061bc124a3dc8524a..ac10dfdf5b9bbae5e684d3d0a45af5d70ecc8c80 100644 |
--- a/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.cpp |
+++ b/third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.cpp |
@@ -31,6 +31,7 @@ |
#include "public/platform/WebSpeechSynthesisUtterance.h" |
#include "public/platform/WebSpeechSynthesizer.h" |
#include "public/platform/WebSpeechSynthesizerClient.h" |
+#include "wtf/PtrUtil.h" |
namespace blink { |
@@ -45,7 +46,7 @@ PlatformSpeechSynthesizer::PlatformSpeechSynthesizer(PlatformSpeechSynthesizerCl |
: m_speechSynthesizerClient(client) |
{ |
m_webSpeechSynthesizerClient = new WebSpeechSynthesizerClientImpl(this, client); |
- m_webSpeechSynthesizer = adoptPtr(Platform::current()->createSpeechSynthesizer(m_webSpeechSynthesizerClient)); |
+ m_webSpeechSynthesizer = wrapUnique(Platform::current()->createSpeechSynthesizer(m_webSpeechSynthesizerClient)); |
} |
PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer() |