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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp

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/modules/webaudio/AsyncAudioDecoder.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp b/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp
index 0bc72378cade01b82f6c4a80569fdd07306f9c76..e0aa660705706b9e95aeb51b8e5962e2847bd21e 100644
--- a/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp
@@ -22,9 +22,9 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "modules/webaudio/AsyncAudioDecoder.h"
#include "core/dom/DOMArrayBuffer.h"
#include "modules/webaudio/AbstractAudioContext.h"
+#include "modules/webaudio/AsyncAudioDecoder.h"
#include "modules/webaudio/AudioBuffer.h"
#include "modules/webaudio/AudioBufferCallback.h"
#include "platform/ThreadSafeFunctional.h"
@@ -32,12 +32,12 @@
#include "platform/audio/AudioFileReader.h"
#include "public/platform/Platform.h"
#include "public/platform/WebTraceLocation.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
namespace blink {
AsyncAudioDecoder::AsyncAudioDecoder()
- : m_thread(adoptPtr(Platform::current()->createThread("Audio Decoder")))
+ : m_thread(wrapUnique(Platform::current()->createThread("Audio Decoder")))
{
}

Powered by Google App Engine
This is Rietveld 408576698