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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/SQLError.h

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/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());
}

Powered by Google App Engine
This is Rietveld 408576698