Index: components/leveldb_proto/leveldb_database.cc |
diff --git a/components/leveldb_proto/leveldb_database.cc b/components/leveldb_proto/leveldb_database.cc |
index cf85e6d183b66287f6b97c03712ea1ec495a522f..3e0c7c25a11cc5e684052cd8cdabbbd27ec11524 100644 |
--- a/components/leveldb_proto/leveldb_database.cc |
+++ b/components/leveldb_proto/leveldb_database.cc |
@@ -25,6 +25,13 @@ |
namespace leveldb_proto { |
+// static |
+bool LevelDB::Destroy(const base::FilePath& database_dir) { |
+ const leveldb::Status s = |
+ leveldb::DestroyDB(database_dir.AsUTF8Unsafe(), leveldb::Options()); |
+ return s.ok(); |
+} |
+ |
LevelDB::LevelDB(const char* client_name) : open_histogram_(nullptr) { |
// Used in lieu of UMA_HISTOGRAM_ENUMERATION because the histogram name is |
// not a constant. |