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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.h

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/platform/graphics/paint/PaintController.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
index 0087fa02e4593fdf47a9ea535a56e05ceff01b59..279e94f79bc1791bfb32669d0d2009502c59af7d 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -20,8 +20,9 @@
#include "wtf/Assertions.h"
#include "wtf/HashMap.h"
#include "wtf/HashSet.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/Vector.h"
+#include <memory>
#include <utility>
class SkPicture;
@@ -39,9 +40,9 @@ class PLATFORM_EXPORT PaintController {
WTF_MAKE_NONCOPYABLE(PaintController);
USING_FAST_MALLOC(PaintController);
public:
- static PassOwnPtr<PaintController> create()
+ static std::unique_ptr<PaintController> create()
{
- return adoptPtr(new PaintController());
+ return wrapUnique(new PaintController());
}
~PaintController()

Powered by Google App Engine
This is Rietveld 408576698