Lines Matching refs:pref
19 void PrefSetObserver::AddPref(const std::string& pref) { in AddPref() argument
20 if (!prefs_.count(pref) && pref_service_->FindPreference(pref.c_str())) { in AddPref()
21 prefs_.insert(pref); in AddPref()
22 registrar_.Add(pref.c_str(), this); in AddPref()
26 void PrefSetObserver::RemovePref(const std::string& pref) { in RemovePref() argument
27 if (prefs_.erase(pref)) in RemovePref()
28 registrar_.Remove(pref.c_str(), this); in RemovePref()
31 bool PrefSetObserver::IsObserved(const std::string& pref) { in IsObserved() argument
32 return prefs_.count(pref) > 0; in IsObserved()
37 const PrefService::Preference* pref = in IsManaged() local
39 if (pref && pref->IsManaged()) in IsManaged()