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

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: Fix typo 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 | « chrome/chrome_browser.gypi ('k') | components/webdata/common/web_database_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..dbb694aaab3f3d35e8f60c5a4391fb68d5423447 100644
--- a/components/webdata/common/web_database_backend.h
+++ b/components/webdata/common/web_database_backend.h
@@ -58,12 +58,6 @@ class WEBDATA_EXPORT WebDatabaseBackend
// Callback is called synchronously.
void InitDatabase();
- // Opens the database file from the profile path if an init has not yet been
- // attempted. Separated from the constructor to ease construction/destruction
- // of this object on one thread but database access on the DB thread. Returns
- // the status of the database.
- sql::InitStatus LoadDatabaseIfNecessary();
-
// Shuts down the database.
void ShutdownDatabase();
@@ -94,6 +88,11 @@ class WEBDATA_EXPORT WebDatabaseBackend
virtual ~WebDatabaseBackend();
private:
+ // Opens the database file from the profile path if an init has not yet been
+ // attempted. Separated from the constructor to ease construction/destruction
+ // of this object on one thread but database access on the DB thread.
+ void LoadDatabaseIfNecessary();
+
// Invoked on a db error.
void DatabaseErrorCallback(int error, sql::Statement* statement);
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/webdata/common/web_database_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698