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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseThread.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/webdatabase/DatabaseThread.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp
index 0fe57779d626c97a50d2be7e6cbd5196211625da..e6bc6f22d9d7588ede778100b7fbb292b7c0537d 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp
@@ -36,11 +36,13 @@
#include "platform/ThreadSafeFunctional.h"
#include "platform/WebThreadSupportingGC.h"
#include "public/platform/Platform.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
DatabaseThread::DatabaseThread()
- : m_transactionClient(adoptPtr(new SQLTransactionClient()))
+ : m_transactionClient(wrapUnique(new SQLTransactionClient()))
, m_cleanupSync(nullptr)
, m_terminationRequested(false)
{
@@ -160,7 +162,7 @@ bool DatabaseThread::isDatabaseThread() const
return !isMainThread();
}
-void DatabaseThread::scheduleTask(PassOwnPtr<DatabaseTask> task)
+void DatabaseThread::scheduleTask(std::unique_ptr<DatabaseTask> task)
{
ASSERT(m_thread);
#if ENABLE(ASSERT)

Powered by Google App Engine
This is Rietveld 408576698