summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prefs/pref_service_syncable.h
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-26 02:25:15 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-26 02:25:15 +0000
commitf3ca90933fa31ae47572933743391a41bedc9d88 (patch)
tree482fb9a0fd6c668f19a8ec0852ff12a4358c748d /chrome/browser/prefs/pref_service_syncable.h
parenta081ddf4494f3b5d607e3152f88c60b44f3a7005 (diff)
downloadchromium_src-f3ca90933fa31ae47572933743391a41bedc9d88.zip
chromium_src-f3ca90933fa31ae47572933743391a41bedc9d88.tar.gz
chromium_src-f3ca90933fa31ae47572933743391a41bedc9d88.tar.bz2
cros: Exclude user has synced app pins from default pin trial.
- Add helper methods to PrefServiceSyncable to figure out whether a pref is pulled from sync; - Use the helper to exclude users that has synced app pins from trial; BUG=234415 Review URL: https://chromiumcodereview.appspot.com/15911003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prefs/pref_service_syncable.h')
-rw-r--r--chrome/browser/prefs/pref_service_syncable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/prefs/pref_service_syncable.h b/chrome/browser/prefs/pref_service_syncable.h
index e1c7d23..4f4715e 100644
--- a/chrome/browser/prefs/pref_service_syncable.h
+++ b/chrome/browser/prefs/pref_service_syncable.h
@@ -66,6 +66,10 @@ class PrefServiceSyncable : public PrefService {
// priority preferences.
bool IsPrioritySyncing();
+ // Returns true if the pref under the given name is pulled down from sync.
+ // Note this does not refer to SYNCABLE_PREF.
+ bool IsPrefSynced(const std::string& name) const;
+
void AddObserver(PrefServiceSyncableObserver* observer);
void RemoveObserver(PrefServiceSyncableObserver* observer);