| Index: base/prefs/pref_service.h
|
| diff --git a/base/prefs/pref_service.h b/base/prefs/pref_service.h
|
| index d9b03c9388ec9c7540ade8c1a5ede1867c1eb8f1..1fc6c127c050f6780fb31b38c6ffef226218fa4e 100644
|
| --- a/base/prefs/pref_service.h
|
| +++ b/base/prefs/pref_service.h
|
| @@ -128,6 +128,10 @@ class BASE_PREFS_EXPORT PrefService : public base::NonThreadSafe {
|
| // the Preference.
|
| bool IsExtensionModifiable() const;
|
|
|
| + // Return the registration flags for this pref as a bitmask of
|
| + // PrefRegistry::PrefRegistrationFlags.
|
| + uint32 registration_flags() const { return registration_flags_; }
|
| +
|
| private:
|
| friend class PrefService;
|
|
|
| @@ -139,6 +143,8 @@ class BASE_PREFS_EXPORT PrefService : public base::NonThreadSafe {
|
|
|
| const base::Value::Type type_;
|
|
|
| + uint32 registration_flags_;
|
| +
|
| // Reference to the PrefService in which this pref was created.
|
| const PrefService* pref_service_;
|
| };
|
| @@ -307,6 +313,7 @@ class BASE_PREFS_EXPORT PrefService : public base::NonThreadSafe {
|
|
|
| // Give access to ReportUserPrefChanged() and GetMutableUserPref().
|
| friend class subtle::ScopedUserPrefUpdateBase;
|
| + friend class PrefServiceTest_WriteablePrefStoreFlags_Test;
|
|
|
| // Registration of pref change observers must be done using the
|
| // PrefChangeRegistrar, which is declared as a friend here to grant it
|
|
|