| Index: chrome/browser/prefs/pref_service.cc
|
| diff --git a/chrome/browser/prefs/pref_service.cc b/chrome/browser/prefs/pref_service.cc
|
| index 363d2624d816dc4af06d65494be6e8b063d530c4..6d01c2b34ad88a4028492d38c54dd0823845db2b 100644
|
| --- a/chrome/browser/prefs/pref_service.cc
|
| +++ b/chrome/browser/prefs/pref_service.cc
|
| @@ -409,8 +409,10 @@ const DictionaryValue* PrefService::GetDictionary(const char* path) const {
|
| return NULL;
|
| }
|
| const Value* value = pref->GetValue();
|
| - if (value->GetType() == Value::TYPE_NULL)
|
| + if (value->GetType() != Value::TYPE_DICTIONARY) {
|
| + NOTREACHED();
|
| return NULL;
|
| + }
|
| return static_cast<const DictionaryValue*>(value);
|
| }
|
|
|
| @@ -423,8 +425,10 @@ const ListValue* PrefService::GetList(const char* path) const {
|
| return NULL;
|
| }
|
| const Value* value = pref->GetValue();
|
| - if (value->GetType() == Value::TYPE_NULL)
|
| + if (value->GetType() != Value::TYPE_LIST) {
|
| + NOTREACHED();
|
| return NULL;
|
| + }
|
| return static_cast<const ListValue*>(value);
|
| }
|
|
|
|
|