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

Unified Diff: chrome/browser/extensions/api/storage/settings_backend.h

Issue 15404005: sync: deferred initialization support for app/extension settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | « no previous file | chrome/browser/extensions/api/storage/settings_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/storage/settings_backend.h
diff --git a/chrome/browser/extensions/api/storage/settings_backend.h b/chrome/browser/extensions/api/storage/settings_backend.h
index 1706828b356f6ef4d3d696ea9d07fdb664d90f08..9de4f0ed9e5e2f1b8ff898067eabd3894791fbec 100644
--- a/chrome/browser/extensions/api/storage/settings_backend.h
+++ b/chrome/browser/extensions/api/storage/settings_backend.h
@@ -40,6 +40,8 @@ class SettingsBackend : public syncer::SyncableService {
SettingsBackend(
const scoped_refptr<SettingsStorageFactory>& storage_factory,
const base::FilePath& base_path,
+ syncer::ModelType sync_type,
+ const syncer::SyncableService::StartSyncFlare& flare,
const SettingsStorageQuotaEnforcer::Limits& quota,
const scoped_refptr<SettingsObserverList>& observers);
@@ -98,8 +100,7 @@ class SettingsBackend : public syncer::SyncableService {
StorageObjMap;
mutable StorageObjMap storage_objs_;
- // Current sync model type. Will be UNSPECIFIED if sync hasn't been enabled
- // yet, and either SETTINGS or APP_SETTINGS if it has been.
+ // Current sync model type. Either EXTENSION_SETTINGS or APP_SETTINGS.
syncer::ModelType sync_type_;
// Current sync processor, if any.
@@ -108,6 +109,8 @@ class SettingsBackend : public syncer::SyncableService {
// Current sync error handler if any.
scoped_ptr<syncer::SyncErrorFactory> sync_error_factory_;
+ syncer::SyncableService::StartSyncFlare flare_;
+
DISALLOW_COPY_AND_ASSIGN(SettingsBackend);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/api/storage/settings_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698