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

Unified Diff: components/webdata/common/web_database_backend.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: 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/webdata/common/web_database_backend.h
diff --git a/components/webdata/common/web_database_backend.h b/components/webdata/common/web_database_backend.h
index 341bb76d7ac5a095943fcd281970fc7316083309..40b245027d00bd2b8488e88a3b366c22f44808b1 100644
--- a/components/webdata/common/web_database_backend.h
+++ b/components/webdata/common/web_database_backend.h
@@ -39,7 +39,8 @@ class WEBDATA_EXPORT WebDatabaseBackend
virtual ~Delegate() {}
// Invoked when the backend has finished loading the db.
- virtual void DBLoaded(sql::InitStatus status) = 0;
+ virtual void DBLoaded(sql::InitStatus status,
+ const sql::DatabaseDiagnosticMap& diagnostics) = 0;
michaeln 2016/07/09 03:00:38 could use a comment about |diagnostics| only being
afakhry 2016/07/11 16:47:45 Done.
};
WebDatabaseBackend(
@@ -115,6 +116,10 @@ class WEBDATA_EXPORT WebDatabaseBackend
// before the db is ready.
sql::InitStatus init_status_;
+ // Contains diagnostic information about the database that will be filled when
+ // a catastrophic error occurs.
+ sql::DatabaseDiagnosticMap db_diagnostics_;
+
// True if an attempt has been made to load the database (even if the attempt
// fails), used to avoid continually trying to reinit if the db init fails.
bool init_complete_;

Powered by Google App Engine
This is Rietveld 408576698