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