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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DelayNode.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/DelayNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/DelayNode.cpp b/third_party/WebKit/Source/modules/webaudio/DelayNode.cpp
index b8d530f9d717fffed13c4e578de5be7ccfbc3cfb..eb35ee1517375f7a5e79262001e2c3b7c80fbbe7 100644
--- a/third_party/WebKit/Source/modules/webaudio/DelayNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DelayNode.cpp
@@ -22,13 +22,14 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "modules/webaudio/DelayNode.h"
#include "bindings/core/v8/ExceptionMessages.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "modules/webaudio/AudioBasicProcessorHandler.h"
+#include "modules/webaudio/DelayNode.h"
#include "modules/webaudio/DelayProcessor.h"
#include "wtf/MathExtras.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -42,7 +43,7 @@ DelayNode::DelayNode(AbstractAudioContext& context, double maxDelayTime)
AudioHandler::NodeTypeDelay,
*this,
context.sampleRate(),
- adoptPtr(new DelayProcessor(
+ wrapUnique(new DelayProcessor(
context.sampleRate(),
1,
m_delayTime->handler(),

Powered by Google App Engine
This is Rietveld 408576698