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

Unified Diff: third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h

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/frame/PageScaleConstraintsSet.h
diff --git a/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h b/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
index 9dd45f92330b66b179515bb4a6d8261c8ce1518d..7104d6daa23c45c9125d662b71d2cba831619383 100644
--- a/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
+++ b/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
@@ -37,8 +37,7 @@
#include "platform/Length.h"
#include "platform/geometry/IntSize.h"
#include "wtf/Allocator.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -47,9 +46,9 @@ namespace blink {
class CORE_EXPORT PageScaleConstraintsSet {
USING_FAST_MALLOC(PageScaleConstraintsSet);
public:
- static std::unique_ptr<PageScaleConstraintsSet> create()
+ static PassOwnPtr<PageScaleConstraintsSet> create()
{
- return wrapUnique(new PageScaleConstraintsSet);
+ return adoptPtr(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