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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteTransaction.cpp

Issue 2395473002: reflow comments in modules/webdatabase (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteTransaction.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteTransaction.cpp b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteTransaction.cpp
index e9bf7279c6698d9ef9e4199cf0889a741577b543..7d4b2678b3427193b2974960d0f8e0cb76a94ea1 100644
--- a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteTransaction.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteTransaction.cpp
@@ -64,10 +64,11 @@ void SQLiteTransaction::commit() {
}
void SQLiteTransaction::rollback() {
- // We do not use the 'm_inProgress = m_db.executeCommand("ROLLBACK")' construct here,
- // because m_inProgress should always be set to false after a ROLLBACK, and
- // m_db.executeCommand("ROLLBACK") can sometimes harmlessly fail, thus returning
- // a non-zero/true result (http://www.sqlite.org/lang_transaction.html).
+ // We do not use the 'm_inProgress = m_db.executeCommand("ROLLBACK")'
+ // construct here, because m_inProgress should always be set to false after a
+ // ROLLBACK, and m_db.executeCommand("ROLLBACK") can sometimes harmlessly
+ // fail, thus returning a non-zero/true result
+ // (http://www.sqlite.org/lang_transaction.html).
if (m_inProgress) {
ASSERT(m_db.m_transactionInProgress);
m_db.executeCommand("ROLLBACK");
« no previous file with comments | « third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteStatement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698