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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 090af4fb4db370449e63595a7cb6239828f79078..a6af8e303b2bd1dbaa8964f9e3e3544504023985 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp
@@ -24,9 +24,7 @@
#include "modules/webaudio/AudioNodeInput.h"
#include "modules/webaudio/AudioNodeOutput.h"
-#include "wtf/PtrUtil.h"
#include <algorithm>
-#include <memory>
namespace blink {
@@ -38,9 +36,9 @@ inline AudioNodeInput::AudioNodeInput(AudioHandler& handler)
m_internalSummingBus = AudioBus::create(1, AudioHandler::ProcessingSizeInFrames);
}
-std::unique_ptr<AudioNodeInput> AudioNodeInput::create(AudioHandler& handler)
+PassOwnPtr<AudioNodeInput> AudioNodeInput::create(AudioHandler& handler)
{
- return wrapUnique(new AudioNodeInput(handler));
+ return adoptPtr(new AudioNodeInput(handler));
}
void AudioNodeInput::connect(AudioNodeOutput& output)

Powered by Google App Engine
This is Rietveld 408576698