Index: chrome/browser/automation/testing_automation_provider.cc |
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc |
index 1f859424313f20730b6f23b03eafcea15574eb13..cd1b0e10ee1dda864a72e402b225a35997cdc13a 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -2142,10 +2142,8 @@ void TestingAutomationProvider::GetBlockedPopupCount(int handle, int* count) { |
void TestingAutomationProvider::SendJSONRequest(int handle, |
const std::string& json_request, |
IPC::Message* reply_message) { |
- scoped_ptr<Value> values; |
- base::JSONReader reader; |
std::string error; |
- values.reset(reader.ReadAndReturnError(json_request, |
+ scoped_ptr<Value> values(base::JSONReader::ReadAndReturnError(json_request, |
base::JSON_ALLOW_TRAILING_COMMAS, NULL, &error)); |
if (!error.empty()) { |
AutomationJSONReply(this, reply_message).SendError(error); |