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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DelayProcessor.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/DelayProcessor.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/DelayProcessor.cpp b/third_party/WebKit/Source/modules/webaudio/DelayProcessor.cpp
index c502851e1a26e06fe31f6b34be08318e9eac9f77..3a35f865a4ba98ff6b7e48a3bbfab2882adc975e 100644
--- a/third_party/WebKit/Source/modules/webaudio/DelayProcessor.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DelayProcessor.cpp
@@ -22,10 +22,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "modules/webaudio/DelayDSPKernel.h"
#include "modules/webaudio/DelayProcessor.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
+#include "modules/webaudio/DelayDSPKernel.h"
namespace blink {
@@ -42,9 +40,9 @@ DelayProcessor::~DelayProcessor()
uninitialize();
}
-std::unique_ptr<AudioDSPKernel> DelayProcessor::createKernel()
+PassOwnPtr<AudioDSPKernel> DelayProcessor::createKernel()
{
- return wrapUnique(new DelayDSPKernel(this));
+ return adoptPtr(new DelayDSPKernel(this));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698