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

Unified Diff: chrome/browser/value_store/value_store_frontend.cc

Issue 10545128: Unrevert r141537: Add extensions::StateStore and use that instead of (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/value_store/failing_value_store.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/value_store/value_store_frontend.cc
diff --git a/chrome/browser/value_store/value_store_frontend.cc b/chrome/browser/value_store/value_store_frontend.cc
index 91d14624642e1b6218b2c3623b8322d90e557561..ca0a7cf9a8197f8ba83b2a06c04f6230966bb422 100644
--- a/chrome/browser/value_store/value_store_frontend.cc
+++ b/chrome/browser/value_store/value_store_frontend.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/value_store/value_store_frontend.h"
+#include "chrome/browser/value_store/failing_value_store.h"
#include "chrome/browser/value_store/leveldb_value_store.h"
#include "content/public/browser/browser_thread.h"
@@ -61,6 +62,8 @@ class ValueStoreFrontend::Backend : public base::RefCountedThreadSafe<Backend> {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
DCHECK(!storage_);
storage_ = LeveldbValueStore::Create(db_path);
+ if (!storage_)
+ storage_ = new FailingValueStore();
Matt Perry 2012/06/12 00:15:57 This is the main difference. I also renamed Faili
}
void RunCallback(const ValueStoreFrontend::ReadCallback& callback,
@@ -71,7 +74,7 @@ class ValueStoreFrontend::Backend : public base::RefCountedThreadSafe<Backend> {
// The actual ValueStore that handles persisting the data to disk. Used
// exclusively on the FILE thread.
- LeveldbValueStore* storage_;
+ ValueStore* storage_;
DISALLOW_COPY_AND_ASSIGN(Backend);
};
« no previous file with comments | « chrome/browser/value_store/failing_value_store.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698