Index: chrome/browser/translate/translate_manager.cc |
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc |
index 4158484bc03108d3689efd95b207fd7fc810637f..f5076f076f5d1b7536aaeaa2d8901733ffd94daa 100644 |
--- a/chrome/browser/translate/translate_manager.cc |
+++ b/chrome/browser/translate/translate_manager.cc |
@@ -220,7 +220,8 @@ void TranslateManager::SetSupportedLanguages(const std::string& language_list) { |
// JSON doesn't support single quotes though this is what is used on the |
// translate server so we must replace them with double quotes. |
ReplaceSubstringsAfterOffset(&languages_json, 0, "'", "\""); |
- scoped_ptr<Value> json_value(base::JSONReader::Read(languages_json, true)); |
+ scoped_ptr<Value> json_value( |
+ base::JSONReader::Read(languages_json, base::JSON_ALLOW_TRAILING_COMMAS)); |
if (json_value == NULL || !json_value->IsType(Value::TYPE_DICTIONARY)) { |
NOTREACHED(); |
return; |