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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioNodeInput.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/AudioNodeInput.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp b/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp
index a6af8e303b2bd1dbaa8964f9e3e3544504023985..090af4fb4db370449e63595a7cb6239828f79078 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp
@@ -24,7 +24,9 @@
#include "modules/webaudio/AudioNodeInput.h"
#include "modules/webaudio/AudioNodeOutput.h"
+#include "wtf/PtrUtil.h"
#include <algorithm>
+#include <memory>
namespace blink {
@@ -36,9 +38,9 @@ inline AudioNodeInput::AudioNodeInput(AudioHandler& handler)
m_internalSummingBus = AudioBus::create(1, AudioHandler::ProcessingSizeInFrames);
}
-PassOwnPtr<AudioNodeInput> AudioNodeInput::create(AudioHandler& handler)
+std::unique_ptr<AudioNodeInput> AudioNodeInput::create(AudioHandler& handler)
{
- return adoptPtr(new AudioNodeInput(handler));
+ return wrapUnique(new AudioNodeInput(handler));
}
void AudioNodeInput::connect(AudioNodeOutput& output)

Powered by Google App Engine
This is Rietveld 408576698