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

Unified Diff: content/browser/indexed_db/indexed_db_transaction.cc

Issue 197333009: Handling LevelDB errors encountered after open. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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: content/browser/indexed_db/indexed_db_transaction.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
index ff7ba2b5bd9a9509ee6cf3d085763a1d3dde7270..c6dd9505f6b71f1374ee3c789ca766d7219cd248 100644
--- a/content/browser/indexed_db/indexed_db_transaction.cc
+++ b/content/browser/indexed_db/indexed_db_transaction.cc
@@ -259,10 +259,9 @@ void IndexedDBTransaction::Commit() {
while (!abort_task_stack_.empty())
abort_task_stack_.pop().Run(NULL);
- callbacks_->OnAbort(
- id_,
- IndexedDBDatabaseError(blink::WebIDBDatabaseExceptionUnknownError,
- "Internal error committing transaction."));
+ IndexedDBDatabaseError error(blink::WebIDBDatabaseExceptionUnknownError,
+ "Internal error committing transaction.");
+ callbacks_->OnAbort(id_, error);
database_->TransactionFinished(this, false);
database_->TransactionCommitFailed();
}

Powered by Google App Engine
This is Rietveld 408576698