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

Unified Diff: components/webdata/common/web_database_backend.h

Issue 2225333003: Recreate the WebData database on a catastrophic SQL error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: derat's comments 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/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 a3ae1fc8a1d3a9429f06629782adc5b1f7cf521d..fe2296f4a634636a2700b4d6fcdaf0760e59f4db 100644
--- a/components/webdata/common/web_database_backend.h
+++ b/components/webdata/common/web_database_backend.h
@@ -97,6 +97,10 @@ class WEBDATA_EXPORT WebDatabaseBackend
// Invoked on a db error.
void DatabaseErrorCallback(int error, sql::Statement* statement);
+ // In the case of a catastrophic DB error, this will be called to recreate the
+ // corrupt database.
+ void RazeAndCloseDatabase();
+
// Commit the current transaction.
void Commit();
« no previous file with comments | « no previous file | components/webdata/common/web_database_backend.cc » ('j') | components/webdata/common/web_database_backend.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698