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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/SQLTransaction.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp b/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp
index d258e51c4370df5bdfe43fc0223050382a12b0ee..603940a10a6d6fb780434f1737b96bbf87e3f6e6 100644
--- a/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp
@@ -164,8 +164,8 @@ SQLTransactionState SQLTransaction::deliverTransactionCallback()
// Spec 4.3.2 5: If the transaction callback was null or raised an exception, jump to the error callback
SQLTransactionState nextState = SQLTransactionState::RunStatements;
if (shouldDeliverErrorCallback) {
- m_database->reportStartTransactionResult(5, SQLError::UNKNOWN_ERR, 0);
- m_transactionError = SQLErrorData::create(SQLError::UNKNOWN_ERR, "the SQLTransactionCallback was null or threw an exception");
+ m_database->reportStartTransactionResult(5, SQLError::kUnknownErr, 0);
+ m_transactionError = SQLErrorData::create(SQLError::kUnknownErr, "the SQLTransactionCallback was null or threw an exception");
nextState = SQLTransactionState::DeliverTransactionErrorCallback;
}
m_database->reportStartTransactionResult(0, -1, 0); // OK
@@ -215,8 +215,8 @@ SQLTransactionState SQLTransaction::deliverStatementCallback()
m_executeSqlAllowed = false;
if (result) {
- m_database->reportCommitTransactionResult(2, SQLError::UNKNOWN_ERR, 0);
- m_transactionError = SQLErrorData::create(SQLError::UNKNOWN_ERR, "the statement callback raised an exception or statement error callback did not return false");
+ m_database->reportCommitTransactionResult(2, SQLError::kUnknownErr, 0);
+ m_transactionError = SQLErrorData::create(SQLError::kUnknownErr, "the statement callback raised an exception or statement error callback did not return false");
return nextStateForTransactionError();
}
return SQLTransactionState::RunStatements;

Powered by Google App Engine
This is Rietveld 408576698