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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioChannel.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 months 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/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;
};
« no previous file with comments | « third_party/WebKit/Source/platform/audio/AudioBus.cpp ('k') | third_party/WebKit/Source/platform/audio/AudioChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698