Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: extensions/browser/value_store/leveldb_value_store.h

Issue 1428843002: LeveldbValueStore: Deleting db when open fails due to corruption. (Closed) Base URL:
Patch Set: EnsureDbIsOpen calling Restore when corrupted, also Recover -> Restore Created 5 years, 1 month 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: extensions/browser/value_store/leveldb_value_store.h
diff --git a/extensions/browser/value_store/leveldb_value_store.h b/extensions/browser/value_store/leveldb_value_store.h
index e763714280dcce9020ce561a89d90d7759919b29..d48628327f8b09e0d8d4abf3c536efe5a117ab92 100644
--- a/extensions/browser/value_store/leveldb_value_store.h
+++ b/extensions/browser/value_store/leveldb_value_store.h
@@ -92,7 +92,7 @@ class LeveldbValueStore : public ValueStore,
// Removes the on-disk database at |db_path_|. Any file system locks should
// be released before calling this method.
- void DeleteDbFile();
+ bool DeleteDbFile();
// Returns whether the database is empty.
bool IsEmpty();
@@ -103,6 +103,7 @@ class LeveldbValueStore : public ValueStore,
// leveldb backend.
scoped_ptr<leveldb::DB> db_;
base::HistogramBase* open_histogram_;
+ base::HistogramBase* restore_histogram_;

Powered by Google App Engine
This is Rietveld 408576698