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

Unified Diff: Source/platform/speech/PlatformSpeechSynthesisVoice.cpp

Issue 339823003: Oilpan: move platform speech objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Trace SpeechRecognition's controller reference. Created 6 years, 6 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/platform/speech/PlatformSpeechSynthesisVoice.cpp
diff --git a/Source/platform/speech/PlatformSpeechSynthesisVoice.cpp b/Source/platform/speech/PlatformSpeechSynthesisVoice.cpp
index a260dc8088a840422242b05b0c1964be00bb22e9..9550f91e3a3a316c1a5091f8884236674928981f 100644
--- a/Source/platform/speech/PlatformSpeechSynthesisVoice.cpp
+++ b/Source/platform/speech/PlatformSpeechSynthesisVoice.cpp
@@ -28,14 +28,14 @@
namespace WebCore {
-PassRefPtr<PlatformSpeechSynthesisVoice> PlatformSpeechSynthesisVoice::create(const String& voiceURI, const String& name, const String& lang, bool localService, bool isDefault)
+PlatformSpeechSynthesisVoice* PlatformSpeechSynthesisVoice::create(const String& voiceURI, const String& name, const String& lang, bool localService, bool isDefault)
{
- return adoptRef(new PlatformSpeechSynthesisVoice(voiceURI, name, lang, localService, isDefault));
+ return new PlatformSpeechSynthesisVoice(voiceURI, name, lang, localService, isDefault);
}
-PassRefPtr<PlatformSpeechSynthesisVoice> PlatformSpeechSynthesisVoice::create()
+PlatformSpeechSynthesisVoice* PlatformSpeechSynthesisVoice::create()
{
- return adoptRef(new PlatformSpeechSynthesisVoice());
+ return new PlatformSpeechSynthesisVoice();
}
PlatformSpeechSynthesisVoice::PlatformSpeechSynthesisVoice(const String& voiceURI, const String& name, const String& lang, bool localService, bool isDefault)
« no previous file with comments | « Source/platform/speech/PlatformSpeechSynthesisVoice.h ('k') | Source/platform/speech/PlatformSpeechSynthesizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698