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

Unified Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 years, 8 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/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;

Powered by Google App Engine
This is Rietveld 408576698