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

Unified Diff: sync/syncable/on_disk_directory_backing_store.cc

Issue 1104423005: Revert of [Sync] Erase sync DB when corrupted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: sync/syncable/on_disk_directory_backing_store.cc
diff --git a/sync/syncable/on_disk_directory_backing_store.cc b/sync/syncable/on_disk_directory_backing_store.cc
index 3a378472e870c13dfdc64e144bcaf653e292012f..918dc07ccb9d2afc4fec6938dd3eb3b56c79c1da 100644
--- a/sync/syncable/on_disk_directory_backing_store.cc
+++ b/sync/syncable/on_disk_directory_backing_store.cc
@@ -26,8 +26,9 @@
OnDiskDirectoryBackingStore::OnDiskDirectoryBackingStore(
const std::string& dir_name,
const base::FilePath& backing_file_path)
- : DirectoryBackingStore(dir_name), backing_file_path_(backing_file_path) {
- DCHECK(backing_file_path_.IsAbsolute());
+ : DirectoryBackingStore(dir_name),
+ allow_failure_for_test_(false),
+ backing_file_path_(backing_file_path) {
}
OnDiskDirectoryBackingStore::~OnDiskDirectoryBackingStore() {
« no previous file with comments | « sync/syncable/on_disk_directory_backing_store.h ('k') | sync/test/directory_backing_store_corruption_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698