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

Unified Diff: chrome/browser/policy/device_management_backend_impl.cc

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 2 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
« no previous file with comments | « chrome/browser/plugin_download_helper.cc ('k') | chrome/browser/policy/device_management_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/device_management_backend_impl.cc
===================================================================
--- chrome/browser/policy/device_management_backend_impl.cc (revision 107061)
+++ chrome/browser/policy/device_management_backend_impl.cc (working copy)
@@ -135,7 +135,7 @@
const net::ResponseCookies& cookies,
const std::string& data);
virtual GURL GetURL(const std::string& server_url);
- virtual void ConfigureRequest(URLFetcher* fetcher);
+ virtual void ConfigureRequest(content::URLFetcher* fetcher);
protected:
// Constructs a device management job running for the given backend.
@@ -282,14 +282,14 @@
return GURL(server_url + '?' + query_params_.Encode());
}
-void DeviceManagementJobBase::ConfigureRequest(URLFetcher* fetcher) {
- fetcher->set_upload_data(kPostContentType, payload_);
+void DeviceManagementJobBase::ConfigureRequest(content::URLFetcher* fetcher) {
+ fetcher->SetUploadData(kPostContentType, payload_);
std::string extra_headers;
if (!gaia_auth_token_.empty())
extra_headers += kServiceTokenAuthHeader + gaia_auth_token_ + "\n";
if (!device_management_token_.empty())
extra_headers += kDMTokenAuthHeader + device_management_token_ + "\n";
- fetcher->set_extra_request_headers(extra_headers);
+ fetcher->SetExtraRequestHeaders(extra_headers);
}
// Handles device registration jobs.
« no previous file with comments | « chrome/browser/plugin_download_helper.cc ('k') | chrome/browser/policy/device_management_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698