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

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: Yet more compile errors Created 4 years, 5 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..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 = ?"));

Powered by Google App Engine
This is Rietveld 408576698