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

Unified Diff: content/renderer/media_capture_from_element/canvas_capture_handler.cc

Issue 2859553002: 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: 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) {

Powered by Google App Engine
This is Rietveld 408576698