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

Unified Diff: chrome/browser/sync/syncable/directory_backing_store.h

Issue 1733008: Delete and recreate the sync database if it is corrupt. (Closed)
Patch Set: Use scoped_sqlite_db_ptr Created 10 years, 8 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: chrome/browser/sync/syncable/directory_backing_store.h
diff --git a/chrome/browser/sync/syncable/directory_backing_store.h b/chrome/browser/sync/syncable/directory_backing_store.h
index 34cb3acdc7bdfe16946b51e938b62ffa9f4c32c9..d1e7d7deba955a0b76129ef91aa289b29724cc2c 100644
--- a/chrome/browser/sync/syncable/directory_backing_store.h
+++ b/chrome/browser/sync/syncable/directory_backing_store.h
@@ -81,6 +81,7 @@ class DirectoryBackingStore {
FRIEND_TEST(DirectoryBackingStoreTest, MigrateVersion69To70);
FRIEND_TEST(DirectoryBackingStoreTest, MigrateVersion70To71);
FRIEND_TEST(DirectoryBackingStoreTest, ModelTypeIds);
+ FRIEND_TEST(DirectoryBackingStoreTest, Corruption);
FRIEND_TEST(MigrationTest, ToCurrentVersion);
// General Directory initialization and load helpers.
@@ -148,7 +149,7 @@ class DirectoryBackingStore {
int GetVersion();
bool MigrateToSpecifics(const char* old_columns,
const char* specifics_column,
- void (*handler_function)(
+ void (*handler_function) (
SQLStatement* old_value_query,
int old_value_column,
sync_pb::EntitySpecifics* mutable_new_value));

Powered by Google App Engine
This is Rietveld 408576698