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

Unified Diff: chrome/browser/component_updater/component_updater_service.cc

Issue 10412050: Change most content::URLFetcher references to net::URLFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ChromeOS, address comments Created 8 years, 7 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/component_updater/component_updater_service.cc
diff --git a/chrome/browser/component_updater/component_updater_service.cc b/chrome/browser/component_updater/component_updater_service.cc
index f1bdaa838e2d21559d42a2d64b761e018423888a..6e18fd57874999c9db7280fff52ee7902b034e0d 100644
--- a/chrome/browser/component_updater/component_updater_service.cc
+++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -136,7 +136,7 @@ net::URLFetcherDelegate* MakeContextDelegate(Del* delegate, Ctx* context) {
}
// Helper to start a url request using |fetcher| with the common flags.
-void StartFetch(content::URLFetcher* fetcher,
+void StartFetch(net::URLFetcher* fetcher,
net::URLRequestContextGetter* context_getter,
bool save_to_file) {
fetcher->SetRequestContext(context_getter);
@@ -325,7 +325,7 @@ class CrxUpdateService : public ComponentUpdateService {
scoped_ptr<Config> config_;
- scoped_ptr<content::URLFetcher> url_fetcher_;
+ scoped_ptr<net::URLFetcher> url_fetcher_;
typedef std::vector<CrxUpdateItem*> UpdateItems;
UpdateItems work_items_;
@@ -507,7 +507,7 @@ void CrxUpdateService::ProcessPendingItems() {
context->id = item->id;
context->installer = item->component.installer;
url_fetcher_.reset(content::URLFetcher::Create(
- 0, item->crx_url, content::URLFetcher::GET,
+ 0, item->crx_url, net::URLFetcher::GET,
MakeContextDelegate(this, context)));
StartFetch(url_fetcher_.get(), config_->RequestContext(), true);
return;
@@ -568,7 +568,7 @@ void CrxUpdateService::ProcessPendingItems() {
query,
config_->ExtraRequestParams());
url_fetcher_.reset(content::URLFetcher::Create(
- 0, GURL(full_query), content::URLFetcher::GET,
+ 0, GURL(full_query), net::URLFetcher::GET,
MakeContextDelegate(this, new UpdateContext())));
StartFetch(url_fetcher_.get(), config_->RequestContext(), false);
}
« no previous file with comments | « chrome/browser/chromeos/login/mock_url_fetchers.cc ('k') | chrome/browser/extensions/app_notify_channel_setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698