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

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

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/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 f9c29737d5a75ae2f2bcd26717fab81ecb25f541..1e1902b8f13d4f169a66011b7e6ce19cbba48e4b 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp
@@ -30,8 +30,6 @@
#include "core/css/resolver/StyleResolverStats.h"
-#include <memory>
-
namespace blink {
void StyleResolverStats::reset()
@@ -65,9 +63,9 @@ bool StyleResolverStats::allCountersEnabled() const
return allCountersEnabled;
}
-std::unique_ptr<TracedValue> StyleResolverStats::toTracedValue() const
+PassOwnPtr<TracedValue> StyleResolverStats::toTracedValue() const
{
- std::unique_ptr<TracedValue> tracedValue = TracedValue::create();
+ OwnPtr<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