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

Unified Diff: third_party/WebKit/Source/core/css/invalidation/InvalidationSet.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/invalidation/InvalidationSet.h
diff --git a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h
index 35f8a426173084353abcf8db145fdb26028ea985..61932a2b605c6f8a1c7b9a8da762d94780436a18 100644
--- a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h
+++ b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h
@@ -40,6 +40,7 @@
#include "wtf/RefPtr.h"
#include "wtf/text/AtomicStringHash.h"
#include "wtf/text/StringHash.h"
+#include <memory>
namespace blink {
@@ -146,10 +147,10 @@ private:
HashSet<AtomicString>& ensureAttributeSet();
// FIXME: optimize this if it becomes a memory issue.
- OwnPtr<HashSet<AtomicString>> m_classes;
- OwnPtr<HashSet<AtomicString>> m_ids;
- OwnPtr<HashSet<AtomicString>> m_tagNames;
- OwnPtr<HashSet<AtomicString>> m_attributes;
+ std::unique_ptr<HashSet<AtomicString>> m_classes;
+ std::unique_ptr<HashSet<AtomicString>> m_ids;
+ std::unique_ptr<HashSet<AtomicString>> m_tagNames;
+ std::unique_ptr<HashSet<AtomicString>> m_attributes;
unsigned m_type : 1;

Powered by Google App Engine
This is Rietveld 408576698