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

Unified Diff: sync/syncable/directory_backing_store.h

Issue 10821121: sync: Attempt to recover from directory corruption (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: sync/syncable/directory_backing_store.h
diff --git a/sync/syncable/directory_backing_store.h b/sync/syncable/directory_backing_store.h
index 75fdad175da2685500c3bddf7e335f5c90a9ef93..ed998e28467b0eefba7b035c2e37dcc61c489c31 100644
--- a/sync/syncable/directory_backing_store.h
+++ b/sync/syncable/directory_backing_store.h
@@ -126,6 +126,9 @@ class DirectoryBackingStore : public base::NonThreadSafe {
// with an error message.
bool CheckIntegrity(sqlite3* handle, std::string* error) const;
+ // Checks that the references between sync nodes is consistent.
+ static bool VerifyReferenceIntegrity(const MetahandlesIndex& entries);
+
// Migration utilities.
bool RefreshColumns();
bool SetVersion(int version);

Powered by Google App Engine
This is Rietveld 408576698