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

Unified Diff: chrome/browser/sync/sync_prefs.h

Issue 9500005: Add a declarative way in c/b/s/sync_prefs.cc to say which data types have prefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
« no previous file with comments | « no previous file | chrome/browser/sync/sync_prefs.cc » ('j') | chrome/browser/sync/sync_prefs.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_prefs.h
diff --git a/chrome/browser/sync/sync_prefs.h b/chrome/browser/sync/sync_prefs.h
index bb67b1c3812c26210a06d427d25519a84bcbf862..2b4f28a5d1501e0534609c89e52785ffe8c9ab30 100644
--- a/chrome/browser/sync/sync_prefs.h
+++ b/chrome/browser/sync/sync_prefs.h
@@ -118,6 +118,7 @@ class SyncPrefs : public base::SupportsWeakPtr<SyncPrefs>,
syncable::ModelTypeSet GetAcknowledgeSyncedTypesForTest() const;
private:
+ void RegisterDeterminedTypes();
void RegisterPreferences();
void RegisterDataTypePreferredPref(
@@ -136,6 +137,13 @@ class SyncPrefs : public base::SupportsWeakPtr<SyncPrefs>,
// configuration management.
BooleanPrefMember pref_sync_managed_;
+ // Data types where the enable/disabled preference is determined by another
+ // type, such APP_NOTIFICATIONS being determined by APPS. This is map from
+ // determined type (APP_NOTIFICATIONS) -> determining type (APPS).
+ typedef std::map<syncable::ModelType, syncable::ModelType>
+ TypesDeterminedByMap;
akalin 2012/02/29 05:33:03 These names are kinda awkward. How about: typede
not at google - send to devlin 2012/03/01 03:14:40 I avoided using the term "dependency" because it g
+ TypesDeterminedByMap types_determined_by_;
+
DISALLOW_COPY_AND_ASSIGN(SyncPrefs);
};
« no previous file with comments | « no previous file | chrome/browser/sync/sync_prefs.cc » ('j') | chrome/browser/sync/sync_prefs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698