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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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/CSSStyleSheetResourceTest.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
index 830ebd89d61d7f0f6b5ac1a8f89618ce239d5f92..f7e301823ac473fdc39d3d2a39e63e63d21743a2 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
@@ -86,7 +86,7 @@ TEST_F(CSSStyleSheetResourceTest, PruneCanCauseEviction) {
CSSImageValue::create(String("image"), imageURL),
CSSPrimitiveValue::create(1.0, CSSPrimitiveValue::UnitType::Number));
Vector<std::unique_ptr<CSSParserSelector>> selectors;
- selectors.append(wrapUnique(new CSSParserSelector()));
+ selectors.append(makeUnique<CSSParserSelector>());
selectors[0]->setMatch(CSSSelector::Id);
selectors[0]->setValue("foo");
CSSProperty property(CSSPropertyBackground, *crossfade);

Powered by Google App Engine
This is Rietveld 408576698