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

Unified Diff: third_party/WebKit/Source/core/style/CachedUAStyle.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/style/CachedUAStyle.h
diff --git a/third_party/WebKit/Source/core/style/CachedUAStyle.h b/third_party/WebKit/Source/core/style/CachedUAStyle.h
index f9cadf8bcacf8a37abb6ca33ba430a53d73d91cb..347b4fe21869c5e43c7cff103248b5b0d7772781 100644
--- a/third_party/WebKit/Source/core/style/CachedUAStyle.h
+++ b/third_party/WebKit/Source/core/style/CachedUAStyle.h
@@ -25,6 +25,8 @@
#include "core/style/ComputedStyle.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -36,9 +38,9 @@ class CachedUAStyle {
USING_FAST_MALLOC(CachedUAStyle);
WTF_MAKE_NONCOPYABLE(CachedUAStyle);
public:
- static PassOwnPtr<CachedUAStyle> create(const ComputedStyle* style)
+ static std::unique_ptr<CachedUAStyle> create(const ComputedStyle* style)
{
- return adoptPtr(new CachedUAStyle(style));
+ return wrapUnique(new CachedUAStyle(style));
}
BorderData border;
« no previous file with comments | « third_party/WebKit/Source/core/streams/ReadableStreamTest.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698