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

Unified Diff: components/update_client/utils.cc

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded Pass() calls Created 5 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 | « components/update_client/utils.h ('k') | components/web_resource/web_resource_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index 47bb43771e78b6e54e08a24c8114894ab6b98f33..11e8060391b0a3cd6805b97e87ed65b83ffdc23e 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -115,13 +115,13 @@ std::string BuildProtocolRequest(const std::string& browser_version,
return request;
}
-net::URLFetcher* SendProtocolRequest(
+scoped_ptr<net::URLFetcher> SendProtocolRequest(
const GURL& url,
const std::string& protocol_request,
net::URLFetcherDelegate* url_fetcher_delegate,
net::URLRequestContextGetter* url_request_context_getter) {
- net::URLFetcher* url_fetcher(net::URLFetcher::Create(
- 0, url, net::URLFetcher::POST, url_fetcher_delegate));
+ scoped_ptr<net::URLFetcher> url_fetcher = net::URLFetcher::Create(
+ 0, url, net::URLFetcher::POST, url_fetcher_delegate);
url_fetcher->SetUploadData("application/xml", protocol_request);
url_fetcher->SetRequestContext(url_request_context_getter);
« no previous file with comments | « components/update_client/utils.h ('k') | components/web_resource/web_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698