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

Unified Diff: chrome/browser/chrome_to_mobile_service.cc

Issue 10554008: Move content::URLFetcher static functions to net::URLFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/chrome_to_mobile_service.cc
diff --git a/chrome/browser/chrome_to_mobile_service.cc b/chrome/browser/chrome_to_mobile_service.cc
index 3c3935458cbdf7219b2b1e8d3de3e16eadbe29f1..7a922c1204978ba181948a1cb0f6f6b7109c7a16 100644
--- a/chrome/browser/chrome_to_mobile_service.cc
+++ b/chrome/browser/chrome_to_mobile_service.cc
@@ -32,9 +32,9 @@
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/web_contents.h"
-#include "content/public/common/url_fetcher.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
+#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context_getter.h"
namespace {
@@ -346,7 +346,7 @@ net::URLFetcher* ChromeToMobileService::CreateRequest(
const RequestData& data) {
bool get = data.type != SNAPSHOT;
GURL service_url(cloud_print_url_->GetCloudPrintServiceURL());
- net::URLFetcher* request = content::URLFetcher::Create(
+ net::URLFetcher* request = net::URLFetcher::Create(
data.type == SEARCH ? GetSearchURL(service_url) :
GetSubmitURL(service_url, data),
get ? net::URLFetcher::GET : net::URLFetcher::POST, this);
@@ -397,7 +397,7 @@ void ChromeToMobileService::RequestAccountInfo() {
}
account_info_request_.reset(
- content::URLFetcher::Create(url, net::URLFetcher::GET, this));
+ net::URLFetcher::Create(url, net::URLFetcher::GET, this));
account_info_request_->SetRequestContext(profile_->GetRequestContext());
account_info_request_->SetMaxRetries(kMaxRetries);
// This request sends the user's cookie to check the cloud print service flag.

Powered by Google App Engine
This is Rietveld 408576698