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

Unified Diff: third_party/WebKit/Source/core/animation/UnderlyingLengthChecker.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/animation/UnderlyingLengthChecker.h
diff --git a/third_party/WebKit/Source/core/animation/UnderlyingLengthChecker.h b/third_party/WebKit/Source/core/animation/UnderlyingLengthChecker.h
index 78ef68ba3a88d4e6251932786fc5ffcaed9b5641..12870d5230287d4b81ed776be979ccd8fce8ed05 100644
--- a/third_party/WebKit/Source/core/animation/UnderlyingLengthChecker.h
+++ b/third_party/WebKit/Source/core/animation/UnderlyingLengthChecker.h
@@ -7,14 +7,16 @@
#include "core/animation/InterpolableValue.h"
#include "core/animation/InterpolationType.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
class UnderlyingLengthChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<UnderlyingLengthChecker> create(size_t underlyingLength)
+ static std::unique_ptr<UnderlyingLengthChecker> create(size_t underlyingLength)
{
- return adoptPtr(new UnderlyingLengthChecker(underlyingLength));
+ return wrapUnique(new UnderlyingLengthChecker(underlyingLength));
}
static size_t getUnderlyingLength(const InterpolationValue& underlying)

Powered by Google App Engine
This is Rietveld 408576698