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

Unified Diff: third_party/WebKit/Source/platform/audio/HRTFElevation.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/platform/audio/HRTFElevation.cpp
diff --git a/third_party/WebKit/Source/platform/audio/HRTFElevation.cpp b/third_party/WebKit/Source/platform/audio/HRTFElevation.cpp
index 777c31bee4e21df67cd3743db93a90166433a20a..f43e910f04fc106b9ae713cbf3b4bfef8f65cf40 100644
--- a/third_party/WebKit/Source/platform/audio/HRTFElevation.cpp
+++ b/third_party/WebKit/Source/platform/audio/HRTFElevation.cpp
@@ -261,9 +261,9 @@ std::unique_ptr<HRTFElevation> HRTFElevation::createForSubject(
return nullptr;
std::unique_ptr<HRTFKernelList> kernelListL =
- wrapUnique(new HRTFKernelList(NumberOfTotalAzimuths));
+ makeUnique<HRTFKernelList>(NumberOfTotalAzimuths);
std::unique_ptr<HRTFKernelList> kernelListR =
- wrapUnique(new HRTFKernelList(NumberOfTotalAzimuths));
+ makeUnique<HRTFKernelList>(NumberOfTotalAzimuths);
// Load convolution kernels from HRTF files.
int interpolatedIndex = 0;
@@ -314,9 +314,9 @@ std::unique_ptr<HRTFElevation> HRTFElevation::createByInterpolatingSlices(
ASSERT(x >= 0.0 && x < 1.0);
std::unique_ptr<HRTFKernelList> kernelListL =
- wrapUnique(new HRTFKernelList(NumberOfTotalAzimuths));
+ makeUnique<HRTFKernelList>(NumberOfTotalAzimuths);
std::unique_ptr<HRTFKernelList> kernelListR =
- wrapUnique(new HRTFKernelList(NumberOfTotalAzimuths));
+ makeUnique<HRTFKernelList>(NumberOfTotalAzimuths);
HRTFKernelList* kernelListL1 = hrtfElevation1->kernelListL();
HRTFKernelList* kernelListR1 = hrtfElevation1->kernelListR();

Powered by Google App Engine
This is Rietveld 408576698