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

Unified Diff: content/browser/speech/google_one_shot_remote_engine.cc

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: content/browser/speech/google_one_shot_remote_engine.cc
diff --git a/content/browser/speech/google_one_shot_remote_engine.cc b/content/browser/speech/google_one_shot_remote_engine.cc
index 97743c9f94a187bf51cd9802f9b5119fafcaf8f3..0dd5bf37b9adbd67648d7a5b025e1ce7f1a3e6d3 100644
--- a/content/browser/speech/google_one_shot_remote_engine.cc
+++ b/content/browser/speech/google_one_shot_remote_engine.cc
@@ -49,8 +49,9 @@ bool ParseServerResponse(const std::string& response_body,
// Parse the response, ignoring comments.
std::string error_msg;
- scoped_ptr<base::Value> response_value = base::JSONReader::ReadAndReturnError(
- response_body, base::JSON_PARSE_RFC, NULL, &error_msg);
+ std::unique_ptr<base::Value> response_value =
+ base::JSONReader::ReadAndReturnError(response_body, base::JSON_PARSE_RFC,
+ NULL, &error_msg);
if (response_value == NULL) {
LOG(WARNING) << "ParseServerResponse: JSONReader failed : " << error_msg;
return false;
« no previous file with comments | « content/browser/speech/google_one_shot_remote_engine.h ('k') | content/browser/speech/google_streaming_remote_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698