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

Unified Diff: chrome/browser/local_discovery/gcd_api_flow_impl.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 | « chrome/browser/intranet_redirect_detector.cc ('k') | chrome/browser/local_discovery/privet_url_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/local_discovery/gcd_api_flow_impl.cc
diff --git a/chrome/browser/local_discovery/gcd_api_flow_impl.cc b/chrome/browser/local_discovery/gcd_api_flow_impl.cc
index d4abd9329625f8e3803afba8d5ec475a324cb5dc..7e23c1b3aa6d5c807dca8b4b89ba21e08e48cf95 100644
--- a/chrome/browser/local_discovery/gcd_api_flow_impl.cc
+++ b/chrome/browser/local_discovery/gcd_api_flow_impl.cc
@@ -63,7 +63,7 @@ void GCDApiFlowImpl::OnGetTokenFailure(
void GCDApiFlowImpl::CreateRequest(const GURL& url) {
net::URLFetcher::RequestType request_type = request_->GetRequestType();
- url_fetcher_.reset(net::URLFetcher::Create(url, request_type, this));
+ url_fetcher_ = net::URLFetcher::Create(url, request_type, this);
if (request_type != net::URLFetcher::GET) {
std::string upload_type;
« no previous file with comments | « chrome/browser/intranet_redirect_detector.cc ('k') | chrome/browser/local_discovery/privet_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698