Index: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp |
diff --git a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp |
index 5aae73a7be1d9852af31ed65c9ff58454c4f8818..a507b3c660e9536c80904f668300fd88c60ed60d 100644 |
--- a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp |
+++ b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp |
@@ -173,7 +173,8 @@ |
&MediaRecorder::DispatchScheduledEvent)) { |
DCHECK(stream_->getTracks().size()); |
- recorder_handler_ = Platform::Current()->CreateMediaRecorderHandler(); |
+ recorder_handler_ = |
+ WTF::WrapUnique(Platform::Current()->CreateMediaRecorderHandler()); |
DCHECK(recorder_handler_); |
if (!recorder_handler_) { |
@@ -283,7 +284,7 @@ |
} |
bool MediaRecorder::isTypeSupported(const String& type) { |
- std::unique_ptr<WebMediaRecorderHandler> handler = |
+ WebMediaRecorderHandler* handler = |
Platform::Current()->CreateMediaRecorderHandler(); |
if (!handler) |
return false; |