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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechRecognitionController.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/modules/speech/SpeechRecognitionController.h
diff --git a/third_party/WebKit/Source/modules/speech/SpeechRecognitionController.h b/third_party/WebKit/Source/modules/speech/SpeechRecognitionController.h
index 6eced0e4c80d15eeeb81392e6d95058f2f0b1bbf..68971af30ac562efb5bdf70c37b4fc8a2bf487da 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechRecognitionController.h
+++ b/third_party/WebKit/Source/modules/speech/SpeechRecognitionController.h
@@ -28,7 +28,7 @@
#include "core/page/Page.h"
#include "modules/speech/SpeechRecognitionClient.h"
-#include "wtf/PassOwnPtr.h"
+#include <memory>
namespace blink {
@@ -47,16 +47,16 @@ public:
void stop(SpeechRecognition* recognition) { m_client->stop(recognition); }
void abort(SpeechRecognition* recognition) { m_client->abort(recognition); }
- static SpeechRecognitionController* create(PassOwnPtr<SpeechRecognitionClient>);
+ static SpeechRecognitionController* create(std::unique_ptr<SpeechRecognitionClient>);
static const char* supplementName();
static SpeechRecognitionController* from(Page* page) { return static_cast<SpeechRecognitionController*>(Supplement<Page>::from(page, supplementName())); }
DEFINE_INLINE_VIRTUAL_TRACE() { Supplement<Page>::trace(visitor); }
private:
- explicit SpeechRecognitionController(PassOwnPtr<SpeechRecognitionClient>);
+ explicit SpeechRecognitionController(std::unique_ptr<SpeechRecognitionClient>);
- OwnPtr<SpeechRecognitionClient> m_client;
+ std::unique_ptr<SpeechRecognitionClient> m_client;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698