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

Unified Diff: sync/internal_api/http_bridge.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: sync/internal_api/http_bridge.cc
diff --git a/sync/internal_api/http_bridge.cc b/sync/internal_api/http_bridge.cc
index 5a601b3dc38f462c6884af250820bb67b73c04e8..5f2cf53a6066e8c1f4de9101729558f0a575f3cd 100644
--- a/sync/internal_api/http_bridge.cc
+++ b/sync/internal_api/http_bridge.cc
@@ -302,8 +302,9 @@ void HttpBridge::MakeAsynchronousPost() {
base::Bind(&HttpBridge::OnURLFetchTimedOut, this));
DCHECK(context_getter_for_request_.get());
- fetch_state_.url_poster = net::URLFetcher::Create(
- url_for_request_, net::URLFetcher::POST, this);
+ fetch_state_.url_poster =
+ net::URLFetcher::Create(url_for_request_, net::URLFetcher::POST, this)
+ .release();
fetch_state_.url_poster->SetRequestContext(context_getter_for_request_.get());
fetch_state_.url_poster->SetUploadData(content_type_, request_content_);
fetch_state_.url_poster->SetExtraRequestHeaders(extra_headers_);
« no previous file with comments | « sync/internal_api/attachments/attachment_uploader_impl.cc ('k') | sync/test/accounts_client/test_accounts_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698