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

Unified Diff: third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.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/core/frame/PageScaleConstraintsSet.h
diff --git a/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h b/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
index 7104d6daa23c45c9125d662b71d2cba831619383..9dd45f92330b66b179515bb4a6d8261c8ce1518d 100644
--- a/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
+++ b/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
@@ -37,7 +37,8 @@
#include "platform/Length.h"
#include "platform/geometry/IntSize.h"
#include "wtf/Allocator.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -46,9 +47,9 @@ namespace blink {
class CORE_EXPORT PageScaleConstraintsSet {
USING_FAST_MALLOC(PageScaleConstraintsSet);
public:
- static PassOwnPtr<PageScaleConstraintsSet> create()
+ static std::unique_ptr<PageScaleConstraintsSet> create()
{
- return adoptPtr(new PageScaleConstraintsSet);
+ return wrapUnique(new PageScaleConstraintsSet);
}
void setDefaultConstraints(const PageScaleConstraints&);
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/frame/Settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698