Index: components/translate/core/browser/translate_language_list.cc |
diff --git a/components/translate/core/browser/translate_language_list.cc b/components/translate/core/browser/translate_language_list.cc |
index d3dcac83f8a17d58e0a4d219e8e2bb7bfe60983d..a9ce3319d14381cc3571d3255fa14d1df3a46245 100644 |
--- a/components/translate/core/browser/translate_language_list.cc |
+++ b/components/translate/core/browser/translate_language_list.cc |
@@ -289,8 +289,8 @@ bool TranslateLanguageList::SetSupportedLanguages( |
// "al": {"XX": 1, ...} |
// } |
// Where "tl" and "al" are set in kTargetLanguagesKey and kAlphaLanguagesKey. |
- scoped_ptr<base::Value> json_value(base::JSONReader::DeprecatedRead( |
- language_list, base::JSON_ALLOW_TRAILING_COMMAS)); |
+ scoped_ptr<base::Value> json_value = |
+ base::JSONReader::Read(language_list, base::JSON_ALLOW_TRAILING_COMMAS); |
if (json_value == NULL || !json_value->IsType(base::Value::TYPE_DICTIONARY)) { |
NotifyEvent(__LINE__, "Language list is invalid"); |