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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PeriodicWave.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/modules/webaudio/PeriodicWave.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
index a2fe54e560cd8b7c9f177ca45dd851529d9c6d89..cef86012e99c2aa3d4a946e4ed4dae5643bd8393 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp
@@ -297,7 +297,7 @@ void PeriodicWave::createBandLimitedTables(const float* realData,
// Create the band-limited table.
unsigned waveSize = periodicWaveSize();
std::unique_ptr<AudioFloatArray> table =
- wrapUnique(new AudioFloatArray(waveSize));
+ makeUnique<AudioFloatArray>(waveSize);
adjustV8ExternalMemory(waveSize * sizeof(float));
m_bandLimitedTables.append(std::move(table));

Powered by Google App Engine
This is Rietveld 408576698