Index: third_party/WebKit/Source/platform/audio/AudioChannel.h |
diff --git a/third_party/WebKit/Source/platform/audio/AudioChannel.h b/third_party/WebKit/Source/platform/audio/AudioChannel.h |
index 472227b839f73c31908c3d9c70f17bf271dd0f5e..f1569111d225cadd6c779a46ee6ffe1fe7e0e850 100644 |
--- a/third_party/WebKit/Source/platform/audio/AudioChannel.h |
+++ b/third_party/WebKit/Source/platform/audio/AudioChannel.h |
@@ -32,8 +32,7 @@ |
#include "platform/PlatformExport.h" |
#include "platform/audio/AudioArray.h" |
#include "wtf/Allocator.h" |
-#include "wtf/PtrUtil.h" |
-#include <memory> |
+#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -59,7 +58,7 @@ public: |
, m_rawPointer(nullptr) |
, m_silent(true) |
{ |
- m_memBuffer = wrapUnique(new AudioFloatArray(length)); |
+ m_memBuffer = adoptPtr(new AudioFloatArray(length)); |
} |
// A "blank" audio channel -- must call set() before it's useful... |
@@ -134,7 +133,7 @@ private: |
size_t m_length; |
float* m_rawPointer; |
- std::unique_ptr<AudioFloatArray> m_memBuffer; |
+ OwnPtr<AudioFloatArray> m_memBuffer; |
bool m_silent; |
}; |