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

Unified Diff: components/copresence/rpc/http_post.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
Index: components/copresence/rpc/http_post.cc
diff --git a/components/copresence/rpc/http_post.cc b/components/copresence/rpc/http_post.cc
index bde0ed336e42ab796bfe6719ad42329577e94725..b841f63adf82f128234bb32487fcda805248cbe0 100644
--- a/components/copresence/rpc/http_post.cc
+++ b/components/copresence/rpc/http_post.cc
@@ -58,8 +58,8 @@ HttpPost::HttpPost(net::URLRequestContextGetter* url_context_getter,
DCHECK(serialize_success);
// Configure and send the request.
- url_fetcher_.reset(net::URLFetcher::Create(
- kUrlFetcherId, url, net::URLFetcher::POST, this));
+ url_fetcher_ =
+ net::URLFetcher::Create(kUrlFetcherId, url, net::URLFetcher::POST, this);
url_fetcher_->SetRequestContext(url_context_getter);
url_fetcher_->SetLoadFlags(net::LOAD_BYPASS_CACHE |
net::LOAD_DISABLE_CACHE |

Powered by Google App Engine
This is Rietveld 408576698