Lines Matching refs:path
261 void PrefService::RegisterBooleanPref(const char* path, in RegisterBooleanPref() argument
263 RegisterPreference(path, Value::CreateBooleanValue(default_value)); in RegisterBooleanPref()
266 void PrefService::RegisterIntegerPref(const char* path, int default_value) { in RegisterIntegerPref() argument
267 RegisterPreference(path, Value::CreateIntegerValue(default_value)); in RegisterIntegerPref()
270 void PrefService::RegisterDoublePref(const char* path, double default_value) { in RegisterDoublePref() argument
271 RegisterPreference(path, Value::CreateDoubleValue(default_value)); in RegisterDoublePref()
274 void PrefService::RegisterStringPref(const char* path, in RegisterStringPref() argument
276 RegisterPreference(path, Value::CreateStringValue(default_value)); in RegisterStringPref()
279 void PrefService::RegisterFilePathPref(const char* path, in RegisterFilePathPref() argument
281 RegisterPreference(path, Value::CreateStringValue(default_value.value())); in RegisterFilePathPref()
284 void PrefService::RegisterListPref(const char* path) { in RegisterListPref() argument
285 RegisterPreference(path, new ListValue()); in RegisterListPref()
288 void PrefService::RegisterListPref(const char* path, ListValue* default_value) { in RegisterListPref() argument
289 RegisterPreference(path, default_value); in RegisterListPref()
292 void PrefService::RegisterDictionaryPref(const char* path) { in RegisterDictionaryPref() argument
293 RegisterPreference(path, new DictionaryValue()); in RegisterDictionaryPref()
296 void PrefService::RegisterDictionaryPref(const char* path, in RegisterDictionaryPref() argument
298 RegisterPreference(path, default_value); in RegisterDictionaryPref()
301 void PrefService::RegisterLocalizedBooleanPref(const char* path, in RegisterLocalizedBooleanPref() argument
304 path, in RegisterLocalizedBooleanPref()
308 void PrefService::RegisterLocalizedIntegerPref(const char* path, in RegisterLocalizedIntegerPref() argument
311 path, in RegisterLocalizedIntegerPref()
315 void PrefService::RegisterLocalizedDoublePref(const char* path, in RegisterLocalizedDoublePref() argument
318 path, in RegisterLocalizedDoublePref()
322 void PrefService::RegisterLocalizedStringPref(const char* path, in RegisterLocalizedStringPref() argument
325 path, in RegisterLocalizedStringPref()
329 bool PrefService::GetBoolean(const char* path) const { in GetBoolean()
334 const Preference* pref = FindPreference(path); in GetBoolean()
336 NOTREACHED() << "Trying to read an unregistered pref: " << path; in GetBoolean()
344 int PrefService::GetInteger(const char* path) const { in GetInteger()
349 const Preference* pref = FindPreference(path); in GetInteger()
351 NOTREACHED() << "Trying to read an unregistered pref: " << path; in GetInteger()
359 double PrefService::GetDouble(const char* path) const { in GetDouble()
364 const Preference* pref = FindPreference(path); in GetDouble()
366 NOTREACHED() << "Trying to read an unregistered pref: " << path; in GetDouble()
374 std::string PrefService::GetString(const char* path) const { in GetString()
379 const Preference* pref = FindPreference(path); in GetString()
381 NOTREACHED() << "Trying to read an unregistered pref: " << path; in GetString()
389 FilePath PrefService::GetFilePath(const char* path) const { in GetFilePath()
394 const Preference* pref = FindPreference(path); in GetFilePath()
396 NOTREACHED() << "Trying to read an unregistered pref: " << path; in GetFilePath()
404 bool PrefService::HasPrefPath(const char* path) const { in HasPrefPath()
405 const Preference* pref = FindPreference(path); in HasPrefPath()
447 const DictionaryValue* PrefService::GetDictionary(const char* path) const { in GetDictionary()
450 const Preference* pref = FindPreference(path); in GetDictionary()
452 NOTREACHED() << "Trying to read an unregistered pref: " << path; in GetDictionary()
463 const ListValue* PrefService::GetList(const char* path) const { in GetList()
466 const Preference* pref = FindPreference(path); in GetList()
468 NOTREACHED() << "Trying to read an unregistered pref: " << path; in GetList()
479 void PrefService::AddPrefObserver(const char* path, in AddPrefObserver() argument
481 pref_notifier_->AddPrefObserver(path, obs); in AddPrefObserver()
484 void PrefService::RemovePrefObserver(const char* path, in RemovePrefObserver() argument
486 pref_notifier_->RemovePrefObserver(path, obs); in RemovePrefObserver()
489 void PrefService::RegisterPreference(const char* path, Value* default_value) { in RegisterPreference() argument
495 if (FindPreference(path)) { in RegisterPreference()
496 NOTREACHED() << "Tried to register duplicate pref " << path; in RegisterPreference()
505 default_store_->SetDefaultValue(path, scoped_value.release()); in RegisterPreference()
508 void PrefService::ClearPref(const char* path) { in ClearPref() argument
511 const Preference* pref = FindPreference(path); in ClearPref()
513 NOTREACHED() << "Trying to clear an unregistered pref: " << path; in ClearPref()
516 user_pref_store_->RemoveValue(path); in ClearPref()
519 void PrefService::Set(const char* path, const Value& value) { in Set() argument
522 const Preference* pref = FindPreference(path); in Set()
524 NOTREACHED() << "Trying to write an unregistered pref: " << path; in Set()
529 NOTREACHED() << "Trying to set pref " << path in Set()
533 user_pref_store_->SetValue(path, value.DeepCopy()); in Set()
537 void PrefService::SetBoolean(const char* path, bool value) { in SetBoolean() argument
538 SetUserPrefValue(path, Value::CreateBooleanValue(value)); in SetBoolean()
541 void PrefService::SetInteger(const char* path, int value) { in SetInteger() argument
542 SetUserPrefValue(path, Value::CreateIntegerValue(value)); in SetInteger()
545 void PrefService::SetDouble(const char* path, double value) { in SetDouble() argument
546 SetUserPrefValue(path, Value::CreateDoubleValue(value)); in SetDouble()
549 void PrefService::SetString(const char* path, const std::string& value) { in SetString() argument
550 SetUserPrefValue(path, Value::CreateStringValue(value)); in SetString()
553 void PrefService::SetFilePath(const char* path, const FilePath& value) { in SetFilePath() argument
554 SetUserPrefValue(path, base::CreateFilePathValue(value)); in SetFilePath()
557 void PrefService::SetList(const char* path, ListValue* value) { in SetList() argument
558 SetUserPrefValue(path, value); in SetList()
561 void PrefService::SetInt64(const char* path, int64 value) { in SetInt64() argument
562 SetUserPrefValue(path, Value::CreateStringValue(base::Int64ToString(value))); in SetInt64()
565 int64 PrefService::GetInt64(const char* path) const { in GetInt64()
568 const Preference* pref = FindPreference(path); in GetInt64()
570 NOTREACHED() << "Trying to read an unregistered pref: " << path; in GetInt64()
582 void PrefService::RegisterInt64Pref(const char* path, int64 default_value) { in RegisterInt64Pref() argument
584 path, Value::CreateStringValue(base::Int64ToString(default_value))); in RegisterInt64Pref()
587 Value* PrefService::GetMutableUserPref(const char* path, in GetMutableUserPref() argument
591 DLOG_IF(WARNING, IsManagedPreference(path)) << in GetMutableUserPref()
592 "Attempt to change managed preference " << path; in GetMutableUserPref()
594 const Preference* pref = FindPreference(path); in GetMutableUserPref()
596 NOTREACHED() << "Trying to get an unregistered pref: " << path; in GetMutableUserPref()
600 NOTREACHED() << "Wrong type for GetMutableValue: " << path; in GetMutableUserPref()
607 if (user_pref_store_->GetMutableValue(path, &value) in GetMutableUserPref()
617 user_pref_store_->SetValueSilently(path, value); in GetMutableUserPref()
626 void PrefService::SetUserPrefValue(const char* path, Value* new_value) { in SetUserPrefValue() argument
628 DLOG_IF(WARNING, IsManagedPreference(path)) << in SetUserPrefValue()
629 "Attempt to change managed preference " << path; in SetUserPrefValue()
631 const Preference* pref = FindPreference(path); in SetUserPrefValue()
633 NOTREACHED() << "Trying to write an unregistered pref: " << path; in SetUserPrefValue()
637 NOTREACHED() << "Trying to set pref " << path in SetUserPrefValue()
643 user_pref_store_->SetValue(path, new_value); in SetUserPrefValue()