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

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

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.h
diff --git a/third_party/WebKit/Source/web/SpeechRecognitionClientProxy.h b/third_party/WebKit/Source/web/SpeechRecognitionClientProxy.h
index 0ff2721d0914f13e777709d7166ac6f8bcdeaf90..c23ac5fd14f57b00c4ce5ce4263107e36fd953e1 100644
--- a/third_party/WebKit/Source/web/SpeechRecognitionClientProxy.h
+++ b/third_party/WebKit/Source/web/SpeechRecognitionClientProxy.h
@@ -29,8 +29,8 @@
#include "modules/speech/SpeechRecognitionClient.h"
#include "public/web/WebSpeechRecognizerClient.h"
#include "wtf/Compiler.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace blink {
@@ -44,7 +44,7 @@ public:
// Constructing a proxy object with a 0 WebSpeechRecognizer is safe in
// itself, but attempting to call start/stop/abort on it will crash.
- static PassOwnPtr<SpeechRecognitionClientProxy> create(WebSpeechRecognizer*);
+ static std::unique_ptr<SpeechRecognitionClientProxy> create(WebSpeechRecognizer*);
// SpeechRecognitionClient:
void start(SpeechRecognition*, const SpeechGrammarList*, const String& lang, bool continuous, bool interimResults, unsigned long maxAlternatives, MediaStreamTrack*) override;

Powered by Google App Engine
This is Rietveld 408576698