Index: content/renderer/media_capture_from_element/canvas_capture_handler.cc |
diff --git a/content/renderer/media_capture_from_element/canvas_capture_handler.cc b/content/renderer/media_capture_from_element/canvas_capture_handler.cc |
index 65935ec0381b7bc19d5409250ccd74c4e2428251..b8b9d73736dbfa4f19739373b46ee2caa451b595 100644 |
--- a/content/renderer/media_capture_from_element/canvas_capture_handler.cc |
+++ b/content/renderer/media_capture_from_element/canvas_capture_handler.cc |
@@ -141,8 +141,7 @@ |
} |
// static |
-std::unique_ptr<CanvasCaptureHandler> |
-CanvasCaptureHandler::CreateCanvasCaptureHandler( |
+CanvasCaptureHandler* CanvasCaptureHandler::CreateCanvasCaptureHandler( |
const blink::WebSize& size, |
double frame_rate, |
const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, |
@@ -151,8 +150,7 @@ |
// The histogram counts the number of calls to the JS API. |
UpdateWebRTCMethodCount(WEBKIT_CANVAS_CAPTURE_STREAM); |
- return std::unique_ptr<CanvasCaptureHandler>( |
- new CanvasCaptureHandler(size, frame_rate, io_task_runner, track)); |
+ return new CanvasCaptureHandler(size, frame_rate, io_task_runner, track); |
} |
void CanvasCaptureHandler::SendNewFrame(const SkImage* image) { |