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

Unified Diff: chrome/browser/extensions/api/storage/leveldb_settings_storage_factory.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/leveldb_settings_storage_factory.cc
diff --git a/chrome/browser/extensions/api/storage/leveldb_settings_storage_factory.cc b/chrome/browser/extensions/api/storage/leveldb_settings_storage_factory.cc
index f58ff7c1af89762c011ac23727aa6ca0e1657fd5..ce72e10239d191d2eb215b56fd40113a33772365 100644
--- a/chrome/browser/extensions/api/storage/leveldb_settings_storage_factory.cc
+++ b/chrome/browser/extensions/api/storage/leveldb_settings_storage_factory.cc
@@ -12,7 +12,13 @@ namespace extensions {
ValueStore* LeveldbSettingsStorageFactory::Create(
const base::FilePath& base_path,
const std::string& extension_id) {
- return new LeveldbValueStore(base_path.AppendASCII(extension_id));
+ return new LeveldbValueStore(GetDatabasePath(base_path, extension_id));
+}
+
+base::FilePath LeveldbSettingsStorageFactory::GetDatabasePath(
+ const base::FilePath& base_path,
+ const std::string& extension_id) {
+ return base_path.AppendASCII(extension_id);
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698