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

Unified Diff: chrome/browser/ui/app_list/search/common/json_response_fetcher.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: chrome/browser/ui/app_list/search/common/json_response_fetcher.cc
diff --git a/chrome/browser/ui/app_list/search/common/json_response_fetcher.cc b/chrome/browser/ui/app_list/search/common/json_response_fetcher.cc
index 967e0d6b49719ac13d7661daa3656fb2542fefc0..d4a9c3afbe1bbec123f7d64548acae35a50bebf4 100644
--- a/chrome/browser/ui/app_list/search/common/json_response_fetcher.cc
+++ b/chrome/browser/ui/app_list/search/common/json_response_fetcher.cc
@@ -30,10 +30,7 @@ JSONResponseFetcher::~JSONResponseFetcher() {}
void JSONResponseFetcher::Start(const GURL& query_url) {
Stop();
- fetcher_.reset(net::URLFetcher::Create(
- query_url,
- net::URLFetcher::GET,
- this));
+ fetcher_ = net::URLFetcher::Create(query_url, net::URLFetcher::GET, this);
fetcher_->SetRequestContext(context_getter_);
fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
net::LOAD_DISABLE_CACHE);
« no previous file with comments | « chrome/browser/tracing/crash_service_uploader.cc ('k') | chrome/browser/ui/app_list/search/common/url_icon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698