Chromium Code Reviews| Index: Source/bindings/modules/v8/custom/V8SQLTransactionCustom.cpp |
| diff --git a/Source/bindings/modules/v8/custom/V8SQLTransactionCustom.cpp b/Source/bindings/modules/v8/custom/V8SQLTransactionCustom.cpp |
| index 3d7b0bcbe4ac6f5dd788d34adbe3bbefbc1d7f65..4c777d7106078b401f916d80cf69e6a10ede6b92 100644 |
| --- a/Source/bindings/modules/v8/custom/V8SQLTransactionCustom.cpp |
| +++ b/Source/bindings/modules/v8/custom/V8SQLTransactionCustom.cpp |
| @@ -91,7 +91,7 @@ void V8SQLTransaction::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8: |
| } |
| SQLTransaction* transaction = V8SQLTransaction::toImpl(info.Holder()); |
| - OwnPtrWillBeRawPtr<SQLStatementCallback> callback = nullptr; |
| + SQLStatementCallback* callback = nullptr; |
|
Jens Widell
2014/09/19 09:07:55
Nit: Could you align this custom code to what the
keishi
2014/09/19 10:30:07
Done.
|
| if (info.Length() > 2 && !isUndefinedOrNull(info[2])) { |
| if (!info[2]->IsFunction()) { |
| exceptionState.throwDOMException(TypeMismatchError, "The 'callback' (2nd) argument provided is not a function."); |
| @@ -101,7 +101,7 @@ void V8SQLTransaction::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8: |
| callback = V8SQLStatementCallback::create(v8::Handle<v8::Function>::Cast(info[2]), ScriptState::current(info.GetIsolate())); |
| } |
| - OwnPtrWillBeRawPtr<SQLStatementErrorCallback> errorCallback = nullptr; |
| + SQLStatementErrorCallback* errorCallback = nullptr; |
| if (info.Length() > 3 && !isUndefinedOrNull(info[3])) { |
| if (!info[3]->IsFunction()) { |
| exceptionState.throwDOMException(TypeMismatchError, "The 'errorCallback' (3rd) argument provided is not a function."); |
| @@ -111,7 +111,7 @@ void V8SQLTransaction::executeSqlMethodCustom(const v8::FunctionCallbackInfo<v8: |
| errorCallback = V8SQLStatementErrorCallback::create(v8::Handle<v8::Function>::Cast(info[3]), ScriptState::current(info.GetIsolate())); |
| } |
| - transaction->executeSQL(statement, sqlValues, callback.release(), errorCallback.release(), exceptionState); |
| + transaction->executeSQL(statement, sqlValues, callback, errorCallback, exceptionState); |
| exceptionState.throwIfNeeded(); |
| } |