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

Unified Diff: chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.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/extensions/api/storage/sync_or_local_value_store_cache.h
diff --git a/chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.h b/chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.h
index 64909ac83f786fd205613b92c3ff9b31d4f8c946..4cd9e37d8b183172dded552f7e4cc8d4f58dbe18 100644
--- a/chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.h
+++ b/chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.h
@@ -12,11 +12,16 @@
#include "chrome/browser/extensions/api/storage/settings_observer.h"
#include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.h"
#include "chrome/browser/extensions/api/storage/value_store_cache.h"
+#include "sync/api/syncable_service.h"
namespace base {
class FilePath;
}
+namespace syncer {
+class SyncableService;
+}
+
namespace extensions {
class SettingsBackend;
@@ -35,8 +40,7 @@ class SyncOrLocalValueStoreCache : public ValueStoreCache {
const base::FilePath& profile_path);
virtual ~SyncOrLocalValueStoreCache();
- SettingsBackend* GetAppBackend() const;
- SettingsBackend* GetExtensionBackend() const;
+ syncer::SyncableService* GetSyncableService(syncer::ModelType type) const;
// ValueStoreCache implementation:
@@ -53,6 +57,7 @@ class SyncOrLocalValueStoreCache : public ValueStoreCache {
const base::FilePath& profile_path);
settings_namespace::Namespace settings_namespace_;
+ bool initialized_;
scoped_ptr<SettingsBackend> app_backend_;
scoped_ptr<SettingsBackend> extension_backend_;

Powered by Google App Engine
This is Rietveld 408576698