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

Unified Diff: remoting/protocol/http_ice_config_request.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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
« no previous file with comments | « remoting/protocol/http_ice_config_request.h ('k') | remoting/protocol/http_ice_config_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/http_ice_config_request.cc
diff --git a/remoting/protocol/http_ice_config_request.cc b/remoting/protocol/http_ice_config_request.cc
index 1ae64144703d28fb525f0be88186ab5b75b0e920..7e8e5aabda1800cba38d215a89db226e88940292 100644
--- a/remoting/protocol/http_ice_config_request.cc
+++ b/remoting/protocol/http_ice_config_request.cc
@@ -129,7 +129,8 @@ void HttpIceConfigRequest::OnResponse(const UrlRequest::Result& result) {
return;
}
- scoped_ptr<base::Value> json = base::JSONReader::Read(result.response_body);
+ std::unique_ptr<base::Value> json =
+ base::JSONReader::Read(result.response_body);
base::DictionaryValue* dictionary = nullptr;
base::ListValue* ice_servers_list = nullptr;
if (!json || !json->GetAsDictionary(&dictionary) ||
« no previous file with comments | « remoting/protocol/http_ice_config_request.h ('k') | remoting/protocol/http_ice_config_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698