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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp

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.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp
index 1e1902b8f13d4f169a66011b7e6ce19cbba48e4b..f9c29737d5a75ae2f2bcd26717fab81ecb25f541 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp
@@ -30,6 +30,8 @@
#include "core/css/resolver/StyleResolverStats.h"
+#include <memory>
+
namespace blink {
void StyleResolverStats::reset()
@@ -63,9 +65,9 @@ bool StyleResolverStats::allCountersEnabled() const
return allCountersEnabled;
}
-PassOwnPtr<TracedValue> StyleResolverStats::toTracedValue() const
+std::unique_ptr<TracedValue> StyleResolverStats::toTracedValue() const
{
- OwnPtr<TracedValue> tracedValue = TracedValue::create();
+ std::unique_ptr<TracedValue> tracedValue = TracedValue::create();
tracedValue->setInteger("sharedStyleLookups", sharedStyleLookups);
tracedValue->setInteger("sharedStyleCandidates", sharedStyleCandidates);
tracedValue->setInteger("sharedStyleFound", sharedStyleFound);
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolverStats.h ('k') | third_party/WebKit/Source/core/dom/AXObjectCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698