| Index: third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp b/third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp
|
| index 95f379941c1b1de7ec3a8f839e90b6e87e87bc99..80a8e3fed37f92c43a35776b82f9b82959f00c4c 100644
|
| --- a/third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp
|
| +++ b/third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp
|
| @@ -53,10 +53,9 @@ SQLStatement::SQLStatement(Database* database, SQLStatementCallback* callback,
|
| SQLStatementErrorCallback* errorCallback)
|
| : m_statementCallback(callback)
|
| , m_statementErrorCallback(errorCallback)
|
| - , m_asyncOperationId(0)
|
| {
|
| if (hasCallback() || hasErrorCallback())
|
| - m_asyncOperationId = InspectorInstrumentation::traceAsyncOperationStarting(database->getExecutionContext(), "SQLStatement");
|
| + InspectorInstrumentation::asyncTaskScheduled(database->getExecutionContext(), "SQLStatement", this);
|
| }
|
|
|
| SQLStatement::~SQLStatement()
|
| @@ -96,7 +95,7 @@ bool SQLStatement::performCallback(SQLTransaction* transaction)
|
| SQLStatementErrorCallback* errorCallback = m_statementErrorCallback.release();
|
| SQLErrorData* error = m_backend->sqlError();
|
|
|
| - InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsyncOperationCompletedCallbackStarting(transaction->database()->getExecutionContext(), m_asyncOperationId);
|
| + InspectorInstrumentation::AsyncTask asyncTask(transaction->database()->getExecutionContext(), this);
|
|
|
| // Call the appropriate statement callback and track if it resulted in an error,
|
| // because then we need to jump to the transaction error callback.
|
| @@ -107,8 +106,6 @@ bool SQLStatement::performCallback(SQLTransaction* transaction)
|
| callbackError = !callback->handleEvent(transaction, m_backend->sqlResultSet());
|
| }
|
|
|
| - InspectorInstrumentation::traceAsyncCallbackCompleted(cookie);
|
| -
|
| return callbackError;
|
| }
|
|
|
|
|