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

Unified Diff: components/webdata/common/web_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
« no previous file with comments | « components/webdata/common/web_data_service_base.h ('k') | components/webdata/common/web_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webdata/common/web_database.h
diff --git a/components/webdata/common/web_database.h b/components/webdata/common/web_database.h
index bd914f446ef1547ab0db195d23e5dfa751a02e3b..79931bedba72d4042d2ff2593492db2d450f6460 100644
--- a/components/webdata/common/web_database.h
+++ b/components/webdata/common/web_database.h
@@ -41,6 +41,13 @@ class WEBDATA_EXPORT WebDatabase {
// Retrieves a table based on its |key|.
WebDatabaseTable* GetTable(WebDatabaseTable::TypeKey key);
+ // Call before Init() to set the error callback to be used for the
+ // underlying database connection.
+ void set_error_callback(
+ const sql::Connection::ErrorCallback& error_callback) {
+ db_.set_error_callback(error_callback);
+ }
+
// Initialize the database given a name. The name defines where the SQLite
// file is. If this returns an error code, no other method should be called.
//
@@ -53,6 +60,8 @@ class WEBDATA_EXPORT WebDatabase {
void BeginTransaction();
void CommitTransaction();
+ std::string GetDiagnosticInfo(int extended_error, sql::Statement* statement);
+
// Exposed for testing only.
sql::Connection* GetSQLConnection();
« no previous file with comments | « components/webdata/common/web_data_service_base.h ('k') | components/webdata/common/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698