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..264f7c67c594ae2d634a522b342c431bad1b37af 100644 |
--- a/components/history/core/browser/history_database.cc |
+++ b/components/history/core/browser/history_database.cc |
@@ -56,9 +56,6 @@ HistoryDatabase::~HistoryDatabase() { |
sql::InitStatus HistoryDatabase::Init(const base::FilePath& history_name) { |
db_.set_histogram_tag("History"); |
- // Set the exceptional sqlite error handler. |
- db_.set_error_callback(error_callback_); |
- |
// Set the database page size to something a little larger to give us |
// better performance (we're typically seek rather than bandwidth limited). |
// This only has an effect before any tables have been created, otherwise |
@@ -259,7 +256,8 @@ void HistoryDatabase::CommitTransaction() { |
} |
void HistoryDatabase::RollbackTransaction() { |
- db_.RollbackTransaction(); |
+ if (db_.transaction_nesting()) |
+ db_.RollbackTransaction(); |
} |
bool HistoryDatabase::RecreateAllTablesButURL() { |
@@ -296,6 +294,10 @@ bool HistoryDatabase::Raze() { |
return db_.Raze(); |
} |
+sql::DatabaseDiagnosticMap HistoryDatabase::GetDiagnosticMap() { |
+ return db_.GetDiagnosticMap(); |
+} |
+ |
bool HistoryDatabase::SetSegmentID(VisitID visit_id, SegmentID segment_id) { |
sql::Statement s(db_.GetCachedStatement(SQL_FROM_HERE, |
"UPDATE visits SET segment_id = ? WHERE id = ?")); |