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

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

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

Powered by Google App Engine
This is Rietveld 408576698