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

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

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup 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 33e08ecd2f1931520fbc53e704c3b5c881e2dc93..f1bdaa838e2d21559d42a2d64b761e018423888a 100644
--- a/chrome/browser/component_updater/component_updater_service.cc
+++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -29,10 +29,10 @@
#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 "content/public/common/url_fetcher_delegate.h"
#include "googleurl/src/gurl.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
+#include "net/url_request/url_fetcher_delegate.h"
using content::BrowserThread;
using content::UtilityProcessHost;
@@ -113,7 +113,7 @@ bool IsVersionNewer(const Version& current, const std::string& proposed) {
// OnURLFetchComplete() callbacks for different types of url requests
// they are differentiated by the |Ctx| type.
template <typename Del, typename Ctx>
-class DelegateWithContext : public content::URLFetcherDelegate {
+class DelegateWithContext : public net::URLFetcherDelegate {
public:
DelegateWithContext(Del* delegate, Ctx* context)
: delegate_(delegate), context_(context) {}
@@ -131,7 +131,7 @@ class DelegateWithContext : public content::URLFetcherDelegate {
};
// This function creates the right DelegateWithContext using template inference.
template <typename Del, typename Ctx>
-content::URLFetcherDelegate* MakeContextDelegate(Del* delegate, Ctx* context) {
+net::URLFetcherDelegate* MakeContextDelegate(Del* delegate, Ctx* context) {
return new DelegateWithContext<Del, Ctx>(delegate, context);
}
« 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