Index: chrome/renderer/extensions/send_request_natives.cc |
diff --git a/chrome/renderer/extensions/send_request_natives.cc b/chrome/renderer/extensions/send_request_natives.cc |
index f493828432cc42c5a5e882d3fef8bb2ca132ea50..e5377ce30f5e3adbfe8c845847fcbbfd6d9e0d61 100644 |
--- a/chrome/renderer/extensions/send_request_natives.cc |
+++ b/chrome/renderer/extensions/send_request_natives.cc |
@@ -33,9 +33,7 @@ v8::Handle<v8::Value> SendRequestNatives::GetNextRequestId( |
v8::Handle<v8::Value> SendRequestNatives::StartRequest( |
const v8::Arguments& args) { |
std::string str_args = *v8::String::Utf8Value(args[1]); |
- base::JSONReader reader; |
- scoped_ptr<Value> value_args; |
- value_args.reset(reader.JsonToValue(str_args, false, false)); |
+ scoped_ptr<Value> value_args(base::JSONReader::Read(str_args)); |
// Since we do the serialization in the v8 extension, we should always get |
// valid JSON. |