Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: chromeos/geolocation/simple_geolocation_request.cc

Issue 1328233002: Ramove use of JSONReader::DeprecatedRead from chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ignore_result's Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/network/auto_connect_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/geolocation/simple_geolocation_request.cc
diff --git a/chromeos/geolocation/simple_geolocation_request.cc b/chromeos/geolocation/simple_geolocation_request.cc
index 90cfad3f893a27d9ddcdaeb0d0a5c34c2c0a45a9..0f205b61890f5a6ef419626cbd659c95391c4a03 100644
--- a/chromeos/geolocation/simple_geolocation_request.cc
+++ b/chromeos/geolocation/simple_geolocation_request.cc
@@ -165,9 +165,8 @@ bool ParseServerResponse(const GURL& server_url,
// Parse the response, ignoring comments.
std::string error_msg;
- scoped_ptr<base::Value> response_value(
- base::JSONReader::DeprecatedReadAndReturnError(
- response_body, base::JSON_PARSE_RFC, NULL, &error_msg));
+ scoped_ptr<base::Value> response_value = base::JSONReader::ReadAndReturnError(
+ response_body, base::JSON_PARSE_RFC, NULL, &error_msg);
if (response_value == NULL) {
PrintGeolocationError(
server_url, "JSONReader failed: " + error_msg, position);
« no previous file with comments | « no previous file | chromeos/network/auto_connect_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698