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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThreadStartupData.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/workers/WorkerThreadStartupData.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp b/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp
index fab3763c7d7ca72303e1cfba7221f0145488f3ef..5477db9f2a81852da8ea7f179b63fa26d9a75c67 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp
@@ -62,7 +62,7 @@ WorkerThreadStartupData::WorkerThreadStartupData(
m_addressSpace(addressSpace),
m_workerSettings(std::move(workerSettings)),
m_v8CacheOptions(v8CacheOptions) {
- m_contentSecurityPolicyHeaders = wrapUnique(new Vector<CSPHeaderAndType>());
+ m_contentSecurityPolicyHeaders = makeUnique<Vector<CSPHeaderAndType>>();
if (contentSecurityPolicyHeaders) {
for (const auto& header : *contentSecurityPolicyHeaders) {
CSPHeaderAndType copiedHeader(header.first.isolatedCopy(), header.second);
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698