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

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

Issue 2107493002: Offer user to send feedback from profile error dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting's & droger's Created 4 years, 4 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.h
diff --git a/components/history/core/browser/history_database.h b/components/history/core/browser/history_database.h
index cf6b1c048ccdaf98160586cabc1323a7d78eb42d..0eb74a571afab422235df12a447b0039371290e6 100644
--- a/components/history/core/browser/history_database.h
+++ b/components/history/core/browser/history_database.h
@@ -75,7 +75,7 @@ class HistoryDatabase : public DownloadDatabase,
// underlying database connection.
void set_error_callback(
const sql::Connection::ErrorCallback& error_callback) {
- error_callback_ = error_callback;
+ db_.set_error_callback(error_callback);
}
// Must call this function to complete initialization. Will return
@@ -145,6 +145,8 @@ class HistoryDatabase : public DownloadDatabase,
// Razes the database. Returns true if successful.
bool Raze();
+ std::string GetDiagnosticInfo(int extended_error, sql::Statement* statement);
+
// Visit table functions ----------------------------------------------------
// Update the segment id of a visit. Return true on success.
@@ -190,7 +192,6 @@ class HistoryDatabase : public DownloadDatabase,
// ---------------------------------------------------------------------------
- sql::Connection::ErrorCallback error_callback_;
sql::Connection db_;
sql::MetaTable meta_table_;
« no previous file with comments | « components/history/core/browser/history_client.h ('k') | components/history/core/browser/history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698