| Index: third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp b/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
|
| index 7edd195960ec26c7c369e7a8614ff5967f58902f..3eb2a4300b9dff30e71b940eae197519c0f58e9a 100644
|
| --- a/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
|
| +++ b/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
|
| @@ -71,7 +71,7 @@ public:
|
| OwnPtr<protocol::Database::Error> errorObject = protocol::Database::Error::create()
|
| .setMessage(error->message())
|
| .setCode(error->code()).build();
|
| - m_callback->sendSuccess(Maybe<protocol::Array<String>>(), Maybe<protocol::Array<protocol::Value>>(), errorObject.release());
|
| + m_callback->sendSuccess(Maybe<protocol::Array<String>>(), Maybe<protocol::Array<protocol::Value>>(), std::move(errorObject));
|
| }
|
|
|
| private:
|
| @@ -112,7 +112,7 @@ public:
|
| case SQLValue::NullValue: values->addItem(protocol::Value::null()); break;
|
| }
|
| }
|
| - m_requestCallback->get()->sendSuccess(columnNames.release(), values.release(), Maybe<protocol::Database::Error>());
|
| + m_requestCallback->get()->sendSuccess(std::move(columnNames), std::move(values), Maybe<protocol::Database::Error>());
|
| return true;
|
| }
|
|
|
| @@ -320,7 +320,7 @@ void InspectorDatabaseAgent::executeSQL(ErrorString*, const String& databaseId,
|
| return;
|
| }
|
|
|
| - RefPtr<ExecuteSQLCallbackWrapper> wrapper = ExecuteSQLCallbackWrapper::create(requestCallback.release());
|
| + RefPtr<ExecuteSQLCallbackWrapper> wrapper = ExecuteSQLCallbackWrapper::create(std::move(requestCallback));
|
| SQLTransactionCallback* callback = TransactionCallback::create(query, wrapper);
|
| SQLTransactionErrorCallback* errorCallback = TransactionErrorCallback::create(wrapper);
|
| VoidCallback* successCallback = TransactionSuccessCallback::create();
|
|
|