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

Unified Diff: third_party/WebKit/Source/platform/audio/Panner.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/Panner.cpp
diff --git a/third_party/WebKit/Source/platform/audio/Panner.cpp b/third_party/WebKit/Source/platform/audio/Panner.cpp
index 9fde3eb5cef31e24e6b3fb6e42ef7b44076a90a2..1d002ea8973a77d669426e2705bd8790b2357e37 100644
--- a/third_party/WebKit/Source/platform/audio/Panner.cpp
+++ b/third_party/WebKit/Source/platform/audio/Panner.cpp
@@ -39,10 +39,10 @@ std::unique_ptr<Panner> Panner::create(PanningModel model,
HRTFDatabaseLoader* databaseLoader) {
switch (model) {
case PanningModelEqualPower:
- return wrapUnique(new EqualPowerPanner(sampleRate));
+ return makeUnique<EqualPowerPanner>(sampleRate);
case PanningModelHRTF:
- return wrapUnique(new HRTFPanner(sampleRate, databaseLoader));
+ return makeUnique<HRTFPanner>(sampleRate, databaseLoader);
default:
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698