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