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

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

Issue 10554008: Move content::URLFetcher static functions to net::URLFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win link error Created 8 years, 6 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 6e18fd57874999c9db7280fff52ee7902b034e0d..06e2bae928c815b893f7b1b0a8c00311f096117d 100644
--- a/chrome/browser/component_updater/component_updater_service.cc
+++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -28,10 +28,10 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
-#include "content/public/common/url_fetcher.h"
#include "googleurl/src/gurl.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
+#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
using content::BrowserThread;
@@ -506,7 +506,7 @@ void CrxUpdateService::ProcessPendingItems() {
context->pk_hash = item->component.pk_hash;
context->id = item->id;
context->installer = item->component.installer;
- url_fetcher_.reset(content::URLFetcher::Create(
+ url_fetcher_.reset(net::URLFetcher::Create(
0, item->crx_url, net::URLFetcher::GET,
MakeContextDelegate(this, context)));
StartFetch(url_fetcher_.get(), config_->RequestContext(), true);
@@ -567,7 +567,7 @@ void CrxUpdateService::ProcessPendingItems() {
const std::string full_query = MakeFinalQuery(config_->UpdateUrl().spec(),
query,
config_->ExtraRequestParams());
- url_fetcher_.reset(content::URLFetcher::Create(
+ url_fetcher_.reset(net::URLFetcher::Create(
0, GURL(full_query), net::URLFetcher::GET,
MakeContextDelegate(this, new UpdateContext())));
StartFetch(url_fetcher_.get(), config_->RequestContext(), false);

Powered by Google App Engine
This is Rietveld 408576698