Home | History | Annotate | Download | only in prefs

Lines Matching full:pref

38 // A helper function for RegisterLocalized*Pref that creates a Value* based on
80 void NotifyReadError(PrefService* pref, int message_id) {
334 const Preference* pref = FindPreference(path);
335 if (!pref) {
336 NOTREACHED() << "Trying to read an unregistered pref: " << path;
339 bool rv = pref->GetValue()->GetAsBoolean(&result);
349 const Preference* pref = FindPreference(path);
350 if (!pref) {
351 NOTREACHED() << "Trying to read an unregistered pref: " << path;
354 bool rv = pref->GetValue()->GetAsInteger(&result);
364 const Preference* pref = FindPreference(path);
365 if (!pref) {
366 NOTREACHED() << "Trying to read an unregistered pref: " << path;
369 bool rv = pref->GetValue()->GetAsDouble(&result);
379 const Preference* pref = FindPreference(path);
380 if (!pref) {
381 NOTREACHED() << "Trying to read an unregistered pref: " << path;
384 bool rv = pref->GetValue()->GetAsString(&result);
394 const Preference* pref = FindPreference(path);
395 if (!pref) {
396 NOTREACHED() << "Trying to read an unregistered pref: " << path;
399 bool rv = base::GetValueAsFilePath(*pref->GetValue(), &result);
405 const Preference* pref = FindPreference(path);
406 return pref && !pref->IsDefaultValue();
414 const Preference* pref = FindPreference(i->first.c_str());
415 DCHECK(pref);
416 const Value* value = pref->GetValue();
443 const Preference* pref = FindPreference(pref_name);
444 return pref && pref->IsManaged();
450 const Preference* pref = FindPreference(path);
451 if (!pref) {
452 NOTREACHED() << "Trying to read an unregistered pref: " << path;
455 const Value* value = pref->GetValue();
466 const Preference* pref = FindPreference(path);
467 if (!pref) {
468 NOTREACHED() << "Trying to read an unregistered pref: " << path;
471 const Value* value = pref->GetValue();
496 NOTREACHED() << "Tried to register duplicate pref " << path;
511 const Preference* pref = FindPreference(path);
512 if (!pref) {
513 NOTREACHED() << "Trying to clear an unregistered pref: " << path;
522 const Preference* pref = FindPreference(path);
523 if (!pref) {
524 NOTREACHED() << "Trying to write an unregistered pref: " << path;
528 if (pref->GetType() != value.GetType()) {
529 NOTREACHED() << "Trying to set pref " << path
530 << " of type " << pref->GetType()
568 const Preference* pref = FindPreference(path);
569 if (!pref) {
570 NOTREACHED() << "Trying to read an unregistered pref: " << path;
574 bool rv = pref->GetValue()->GetAsString(&result);
594 const Preference* pref = FindPreference(path);
595 if (!pref) {
596 NOTREACHED() << "Trying to get an unregistered pref: " << path;
599 if (pref->GetType() != type) {
631 const Preference* pref = FindPreference(path);
632 if (!pref) {
633 NOTREACHED() << "Trying to write an unregistered pref: " << path;
636 if (pref->GetType() != new_value->GetType()) {
637 NOTREACHED() << "Trying to set pref " << path
638 << " of type " << pref->GetType()
665 "Must register pref before getting its value";
674 NOTREACHED() << "no valid value found for registered pref " << name_;