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

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

Powered by Google App Engine
This is Rietveld 408576698