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

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

Powered by Google App Engine
This is Rietveld 408576698