Index: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp |
diff --git a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp |
index 230486d957e745c6ef4ba33c168a857823a3eb41..9b0db267c2efab9ac477fec6b6d44b9fae4e9d02 100644 |
--- a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp |
+++ b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp |
@@ -30,9 +30,7 @@ |
#include "platform/heap/SafePoint.h" |
#include "third_party/sqlite/sqlite3.h" |
#include "wtf/Assertions.h" |
-#include "wtf/PtrUtil.h" |
#include "wtf/text/CString.h" |
-#include <memory> |
// SQLite 3.6.16 makes sqlite3_prepare_v2 automatically retry preparing the statement |
// once if the database scheme has changed. We rely on this behavior. |
@@ -102,8 +100,8 @@ int SQLiteStatement::prepare() |
// Need to pass non-stack |const char*| and |sqlite3_stmt*| to avoid race |
// with Oilpan stack scanning. |
- std::unique_ptr<const char*> tail = wrapUnique(new const char*); |
- std::unique_ptr<sqlite3_stmt*> statement = wrapUnique(new sqlite3_stmt*); |
+ OwnPtr<const char*> tail = adoptPtr(new const char*); |
+ OwnPtr<sqlite3_stmt*> statement = adoptPtr(new sqlite3_stmt*); |
*tail = nullptr; |
*statement = nullptr; |
int error; |