| Index: components/translate/core/browser/translate_prefs.cc
|
| diff --git a/components/translate/core/browser/translate_prefs.cc b/components/translate/core/browser/translate_prefs.cc
|
| index 63d758b0aa7b2f54b7063ed5fb4c2a702674ec41..6e8f7b6ccfd92f8a9c02dc5a2644a333783ab710 100644
|
| --- a/components/translate/core/browser/translate_prefs.cc
|
| +++ b/components/translate/core/browser/translate_prefs.cc
|
| @@ -616,7 +616,8 @@
|
| const base::DictionaryValue* item = nullptr;
|
| std::string language;
|
| double probability = 0.0;
|
| - if (entry.GetAsDictionary(&item) && item->GetString(kLanguage, &language) &&
|
| + if (entry->GetAsDictionary(&item) &&
|
| + item->GetString(kLanguage, &language) &&
|
| item->GetDouble(kProbability, &probability)) {
|
| // Normalize the the language code known and supported by
|
| // Translate.
|
|
|