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

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

Issue 2850593002: Revert of [blink] Unique pointers in Platform.h (Closed)
Patch Set: 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 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;

Powered by Google App Engine
This is Rietveld 408576698