Index: chrome/browser/ui/webui/options2/core_options_handler2.cc |
diff --git a/chrome/browser/ui/webui/options2/core_options_handler2.cc b/chrome/browser/ui/webui/options2/core_options_handler2.cc |
index 226756b116d71471e2b5a503b0fe5d84c40db1de..d25a3f1193ab4f6e34f69cd15dbff00573139d50 100644 |
--- a/chrome/browser/ui/webui/options2/core_options_handler2.cc |
+++ b/chrome/browser/ui/webui/options2/core_options_handler2.cc |
@@ -416,9 +416,7 @@ void CoreOptionsHandler::HandleSetPref(const ListValue* args, PrefType type) { |
std::string json_string; |
CHECK(value->GetAsString(&json_string)); |
temp_value.reset( |
- base::JSONReader().JsonToValue(json_string, |
- false, // no check_root |
- false)); // no trailing comma |
+ base::JSONReader::Read(json_string)); |
value = temp_value.get(); |
CHECK_EQ(base::Value::TYPE_LIST, value->GetType()); |
break; |