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

Unified Diff: chrome/browser/policy/device_management_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/policy/device_management_service.cc
diff --git a/chrome/browser/policy/device_management_service.cc b/chrome/browser/policy/device_management_service.cc
index edaeb683c5b058a57ca426909c1153b70d8c55bf..9657719fbd0e5bf30fbd946d2178bf64dac3b8c9 100644
--- a/chrome/browser/policy/device_management_service.cc
+++ b/chrome/browser/policy/device_management_service.cc
@@ -282,7 +282,7 @@ class DeviceManagementRequestJobImpl : public DeviceManagementRequestJob {
GURL GetURL(const std::string& server_url);
// Configures the fetcher, setting up payload and headers.
- void ConfigureRequest(content::URLFetcher* fetcher);
+ void ConfigureRequest(net::URLFetcher* fetcher);
protected:
// DeviceManagementRequestJob:
@@ -393,7 +393,7 @@ GURL DeviceManagementRequestJobImpl::GetURL(
}
void DeviceManagementRequestJobImpl::ConfigureRequest(
- content::URLFetcher* fetcher) {
+ net::URLFetcher* fetcher) {
std::string payload;
CHECK(request_.SerializeToString(&payload));
fetcher->SetUploadData(kPostContentType, payload);
@@ -510,8 +510,8 @@ DeviceManagementService::DeviceManagementService(
void DeviceManagementService::StartJob(DeviceManagementRequestJobImpl* job,
bool bypass_proxy) {
- content::URLFetcher* fetcher = content::URLFetcher::Create(
- 0, job->GetURL(server_url_), content::URLFetcher::POST, this);
+ net::URLFetcher* fetcher = content::URLFetcher::Create(
+ 0, job->GetURL(server_url_), net::URLFetcher::POST, this);
fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES |
net::LOAD_DISABLE_CACHE |
« no previous file with comments | « chrome/browser/net/sdch_dictionary_fetcher.cc ('k') | chrome/browser/policy/testing_policy_url_fetcher_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698