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

Unified Diff: components/omnibox/base_search_provider.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/metrics/net/net_metrics_log_uploader.cc ('k') | components/omnibox/search_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/base_search_provider.cc
diff --git a/components/omnibox/base_search_provider.cc b/components/omnibox/base_search_provider.cc
index a7957fedb24a5ce0128709e354f55d7f43d30350..e0b66142104e2ab480de97a651b50e6a6d078d83 100644
--- a/components/omnibox/base_search_provider.cc
+++ b/components/omnibox/base_search_provider.cc
@@ -56,11 +56,9 @@ SuggestionDeletionHandler::SuggestionDeletionHandler(
GURL url(deletion_url);
DCHECK(url.is_valid());
- deletion_fetcher_.reset(net::URLFetcher::Create(
- BaseSearchProvider::kDeletionURLFetcherID,
- url,
- net::URLFetcher::GET,
- this));
+ deletion_fetcher_ =
+ net::URLFetcher::Create(BaseSearchProvider::kDeletionURLFetcherID, url,
+ net::URLFetcher::GET, this);
deletion_fetcher_->SetRequestContext(request_context);
deletion_fetcher_->Start();
}
« no previous file with comments | « components/metrics/net/net_metrics_log_uploader.cc ('k') | components/omnibox/search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698