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

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

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/mediarecorder/MediaRecorder.cpp
diff --git a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
index c7dd95403fabe6badf25c92e3f2b3f1e2f729248..4d415e037144b1782a40ef9da17f3d794897f129 100644
--- a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
+++ b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
@@ -14,6 +14,7 @@
#include "platform/blob/BlobData.h"
#include "public/platform/Platform.h"
#include "public/platform/WebMediaStream.h"
+#include "wtf/PtrUtil.h"
#include <algorithm>
namespace blink {
@@ -145,7 +146,7 @@ MediaRecorder::MediaRecorder(ExecutionContext* context, MediaStream* stream, con
{
DCHECK(m_stream->getTracks().size());
- m_recorderHandler = adoptPtr(Platform::current()->createMediaRecorderHandler());
+ m_recorderHandler = wrapUnique(Platform::current()->createMediaRecorderHandler());
DCHECK(m_recorderHandler);
if (!m_recorderHandler) {

Powered by Google App Engine
This is Rietveld 408576698