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

Unified Diff: third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 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: third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp
diff --git a/third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp b/third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp
index 798091feb6d9a82083510dc49d5b126bb9a23dd9..62f929c3098cb9fb5468ff101a26860224b299de 100644
--- a/third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp
+++ b/third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp
@@ -42,6 +42,8 @@
#include "public/web/WebSpeechRecognitionResult.h"
#include "public/web/WebSpeechRecognizer.h"
#include "wtf/PassRefPtr.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -49,9 +51,9 @@ SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy()
{
}
-PassOwnPtr<SpeechRecognitionClientProxy> SpeechRecognitionClientProxy::create(WebSpeechRecognizer* recognizer)
+std::unique_ptr<SpeechRecognitionClientProxy> SpeechRecognitionClientProxy::create(WebSpeechRecognizer* recognizer)
{
- return adoptPtr(new SpeechRecognitionClientProxy(recognizer));
+ return wrapUnique(new SpeechRecognitionClientProxy(recognizer));
}
void SpeechRecognitionClientProxy::start(SpeechRecognition* recognition, const SpeechGrammarList* grammarList, const String& lang, bool continuous, bool interimResults, unsigned long maxAlternatives, MediaStreamTrack* audioTrack)
« no previous file with comments | « third_party/WebKit/Source/web/SpeechRecognitionClientProxy.h ('k') | third_party/WebKit/Source/web/StorageClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698