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

Unified Diff: components/history/core/browser/history_database.cc

Issue 2107493002: Offer user to send feedback from profile error dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unused variable Created 4 years, 6 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: components/history/core/browser/history_database.cc
diff --git a/components/history/core/browser/history_database.cc b/components/history/core/browser/history_database.cc
index a11edafc1465c8d448e3b7ae7075bb98527fee2d..02ab70083279540e461ad4f47576666ec493a9e1 100644
--- a/components/history/core/browser/history_database.cc
+++ b/components/history/core/browser/history_database.cc
@@ -259,7 +259,8 @@ void HistoryDatabase::CommitTransaction() {
}
void HistoryDatabase::RollbackTransaction() {
- db_.RollbackTransaction();
+ if (db_.transaction_nesting())
+ db_.RollbackTransaction();
}
bool HistoryDatabase::RecreateAllTablesButURL() {

Powered by Google App Engine
This is Rietveld 408576698