Lines Matching refs:pref
80 void NotifyReadError(PrefService* pref, int message_id) { in NotifyReadError() argument
334 const Preference* pref = FindPreference(path); in GetBoolean() local
335 if (!pref) { in GetBoolean()
339 bool rv = pref->GetValue()->GetAsBoolean(&result); in GetBoolean()
349 const Preference* pref = FindPreference(path); in GetInteger() local
350 if (!pref) { in GetInteger()
354 bool rv = pref->GetValue()->GetAsInteger(&result); in GetInteger()
364 const Preference* pref = FindPreference(path); in GetDouble() local
365 if (!pref) { in GetDouble()
369 bool rv = pref->GetValue()->GetAsDouble(&result); in GetDouble()
379 const Preference* pref = FindPreference(path); in GetString() local
380 if (!pref) { in GetString()
384 bool rv = pref->GetValue()->GetAsString(&result); in GetString()
394 const Preference* pref = FindPreference(path); in GetFilePath() local
395 if (!pref) { in GetFilePath()
399 bool rv = base::GetValueAsFilePath(*pref->GetValue(), &result); in GetFilePath()
405 const Preference* pref = FindPreference(path); in HasPrefPath() local
406 return pref && !pref->IsDefaultValue(); in HasPrefPath()
414 const Preference* pref = FindPreference(i->first.c_str()); in GetPreferenceValues() local
415 DCHECK(pref); in GetPreferenceValues()
416 const Value* value = pref->GetValue(); in GetPreferenceValues()
443 const Preference* pref = FindPreference(pref_name); in IsManagedPreference() local
444 return pref && pref->IsManaged(); in IsManagedPreference()
450 const Preference* pref = FindPreference(path); in GetDictionary() local
451 if (!pref) { in GetDictionary()
455 const Value* value = pref->GetValue(); in GetDictionary()
466 const Preference* pref = FindPreference(path); in GetList() local
467 if (!pref) { in GetList()
471 const Value* value = pref->GetValue(); in GetList()
511 const Preference* pref = FindPreference(path); in ClearPref() local
512 if (!pref) { in ClearPref()
522 const Preference* pref = FindPreference(path); in Set() local
523 if (!pref) { in Set()
528 if (pref->GetType() != value.GetType()) { in Set()
530 << " of type " << pref->GetType() in Set()
568 const Preference* pref = FindPreference(path); in GetInt64() local
569 if (!pref) { in GetInt64()
574 bool rv = pref->GetValue()->GetAsString(&result); in GetInt64()
594 const Preference* pref = FindPreference(path); in GetMutableUserPref() local
595 if (!pref) { in GetMutableUserPref()
599 if (pref->GetType() != type) { in GetMutableUserPref()
631 const Preference* pref = FindPreference(path); in SetUserPrefValue() local
632 if (!pref) { in SetUserPrefValue()
636 if (pref->GetType() != new_value->GetType()) { in SetUserPrefValue()
638 << " of type " << pref->GetType() in SetUserPrefValue()