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

Unified Diff: chrome/browser/extensions/api/storage/policy_value_store.cc

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: 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/extensions/api/storage/policy_value_store.cc
diff --git a/chrome/browser/extensions/api/storage/policy_value_store.cc b/chrome/browser/extensions/api/storage/policy_value_store.cc
index f5da68205785a23105b728cac0fa2feef3c39eba..fdb3c212dcdd5986f0899560c513915671407243 100644
--- a/chrome/browser/extensions/api/storage/policy_value_store.cc
+++ b/chrome/browser/extensions/api/storage/policy_value_store.cc
@@ -161,4 +161,12 @@ ValueStore::WriteResult PolicyValueStore::Clear() {
return MakeWriteResult(ReadOnlyError(util::NoKey()));
}
+bool PolicyValueStore::Restore() {
+ return delegate_->Restore();
not at google - send to devlin 2014/02/14 19:35:56 We should be able to restore from policy? +joaoda
Devlin 2014/02/18 23:55:22 I think so, yes. The Policy stores, even though t
Joao da Silva 2014/02/19 08:32:03 This is fine. The PolicyValueStore is used to dete
not at google - send to devlin 2014/02/19 17:55:59 Ok. So there's no reason to restore them now? Devl
Joao da Silva 2014/02/19 18:05:43 I don't know how LevelDB handles corrupted databas
not at google - send to devlin 2014/02/19 18:13:53 Restore on the leveldb instance is really just for
+}
+
+bool PolicyValueStore::RestoreKey(const std::string& key) {
+ return delegate_->RestoreKey(key);
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698