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

Unified Diff: chrome/browser/value_store/testing_value_store.h

Issue 165223003: Add a Restore() method to ValueStore and make StorageAPI use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 10 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/value_store/testing_value_store.h
diff --git a/chrome/browser/value_store/testing_value_store.h b/chrome/browser/value_store/testing_value_store.h
index 53fc7c81f1c3c7645b1f85597b69919a122066e6..c3847407025695cea0672a85d6084cc36402a31c 100644
--- a/chrome/browser/value_store/testing_value_store.h
+++ b/chrome/browser/value_store/testing_value_store.h
@@ -43,6 +43,10 @@ class TestingValueStore : public ValueStore {
virtual WriteResult Remove(const std::string& key) OVERRIDE;
virtual WriteResult Remove(const std::vector<std::string>& keys) OVERRIDE;
virtual WriteResult Clear() OVERRIDE;
+ // TestingValueStores can't get corrupted (they're all in-memory), so these
+ // just return true.
+ virtual bool Restore() OVERRIDE;
+ virtual bool RestoreKey(const std::string& key) OVERRIDE;
private:
scoped_ptr<ValueStore::Error> TestingError();
« no previous file with comments | « chrome/browser/value_store/leveldb_value_store_unittest.cc ('k') | chrome/browser/value_store/testing_value_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698