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() { |