| Index: third_party/WebKit/Source/modules/webdatabase/SQLError.h
|
| diff --git a/third_party/WebKit/Source/modules/webdatabase/SQLError.h b/third_party/WebKit/Source/modules/webdatabase/SQLError.h
|
| index 251876807f0db783b3530f4804dcb2cfb24b9ff3..730f5c99263b638b7cf6a21008704ecbe7441dc8 100644
|
| --- a/third_party/WebKit/Source/modules/webdatabase/SQLError.h
|
| +++ b/third_party/WebKit/Source/modules/webdatabase/SQLError.h
|
| @@ -30,24 +30,26 @@
|
| #define SQLError_h
|
|
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "wtf/PtrUtil.h"
|
| #include "wtf/text/WTFString.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| class SQLErrorData {
|
| USING_FAST_MALLOC(SQLErrorData);
|
| public:
|
| - static PassOwnPtr<SQLErrorData> create(unsigned code, const String& message)
|
| + static std::unique_ptr<SQLErrorData> create(unsigned code, const String& message)
|
| {
|
| - return adoptPtr(new SQLErrorData(code, message));
|
| + return wrapUnique(new SQLErrorData(code, message));
|
| }
|
|
|
| - static PassOwnPtr<SQLErrorData> create(unsigned code, const char* message, int sqliteCode, const char* sqliteMessage)
|
| + static std::unique_ptr<SQLErrorData> create(unsigned code, const char* message, int sqliteCode, const char* sqliteMessage)
|
| {
|
| return create(code, String::format("%s (%d %s)", message, sqliteCode, sqliteMessage));
|
| }
|
|
|
| - static PassOwnPtr<SQLErrorData> create(const SQLErrorData& data)
|
| + static std::unique_ptr<SQLErrorData> create(const SQLErrorData& data)
|
| {
|
| return create(data.code(), data.message());
|
| }
|
|
|