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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverStats.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/css/resolver/StyleResolverStats.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.h b/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.h
index 8e0f8200458660720eb23fa5e1315e58f10f6c9d..59c630bf4820924f15a4447c9f13e7da86d053e7 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.h
@@ -33,21 +33,22 @@
#include "platform/TraceEvent.h"
#include "platform/TracedValue.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
class StyleResolverStats {
USING_FAST_MALLOC(StyleResolverStats);
public:
- static PassOwnPtr<StyleResolverStats> create()
+ static std::unique_ptr<StyleResolverStats> create()
{
- return adoptPtr(new StyleResolverStats);
+ return wrapUnique(new StyleResolverStats);
}
void reset();
bool allCountersEnabled() const;
- PassOwnPtr<TracedValue> toTracedValue() const;
+ std::unique_ptr<TracedValue> toTracedValue() const;
unsigned sharedStyleLookups;
unsigned sharedStyleCandidates;

Powered by Google App Engine
This is Rietveld 408576698