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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/core/html/canvas/CanvasDrawListener.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp
index 0fa892a557788429d1eb496688fc4ee50b5296fd..4717d51ce8b1307d0765fca6cec093b52a82e511 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp
@@ -4,8 +4,6 @@
#include "core/html/canvas/CanvasDrawListener.h"
-#include <memory>
-
namespace blink {
CanvasDrawListener::~CanvasDrawListener() {}
@@ -25,7 +23,7 @@ void CanvasDrawListener::requestFrame()
m_frameCaptureRequested = true;
}
-CanvasDrawListener::CanvasDrawListener(std::unique_ptr<WebCanvasCaptureHandler> handler)
+CanvasDrawListener::CanvasDrawListener(PassOwnPtr<WebCanvasCaptureHandler> handler)
: m_frameCaptureRequested(true)
, m_handler(std::move(handler))
{

Powered by Google App Engine
This is Rietveld 408576698