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

Unified Diff: components/autofill/content/browser/wallet/wallet_client.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/autofill/content/browser/wallet/wallet_client.cc
diff --git a/components/autofill/content/browser/wallet/wallet_client.cc b/components/autofill/content/browser/wallet/wallet_client.cc
index 3ecb5a8b2ccd620407a608320230c38d06d9efb7..b5cd15ec4a9d961c752196cd612b1613f4af7b96 100644
--- a/components/autofill/content/browser/wallet/wallet_client.cc
+++ b/components/autofill/content/browser/wallet/wallet_client.cc
@@ -530,8 +530,7 @@ void WalletClient::MakeWalletRequest(const GURL& url,
DCHECK_EQ(request_type_, NO_REQUEST);
request_type_ = request_type;
- request_.reset(net::URLFetcher::Create(
- 0, url, net::URLFetcher::POST, this));
+ request_ = net::URLFetcher::Create(0, url, net::URLFetcher::POST, this);
request_->SetRequestContext(context_getter_.get());
DVLOG(1) << "Making request to " << url << " with post_body=" << post_body;
request_->SetUploadData(mime_type, post_body);
« no previous file with comments | « chromeos/timezone/timezone_request.cc ('k') | components/autofill/content/browser/wallet/wallet_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698