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

Unified Diff: chrome/service/gaia/service_gaia_authenticator.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
Index: chrome/service/gaia/service_gaia_authenticator.cc
===================================================================
--- chrome/service/gaia/service_gaia_authenticator.cc (revision 107061)
+++ chrome/service/gaia/service_gaia_authenticator.cc (working copy)
@@ -65,16 +65,17 @@
const std::string& post_body) {
DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
URLFetcher* request = new URLFetcher(post_url, URLFetcher::POST, this);
- request->set_request_context(
+ request->SetRequestContext(
g_service_process->GetServiceURLRequestContextGetter());
- request->set_upload_data("application/x-www-form-urlencoded", post_body);
+ request->SetUploadData("application/x-www-form-urlencoded", post_body);
request->Start();
}
// content::URLFetcherDelegate implementation
-void ServiceGaiaAuthenticator::OnURLFetchComplete(const URLFetcher* source) {
+void ServiceGaiaAuthenticator::OnURLFetchComplete(
+ const content::URLFetcher* source) {
DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
- http_response_code_ = source->response_code();
+ http_response_code_ = source->GetResponseCode();
source->GetResponseAsString(&response_data_);
delete source;
// Add an extra reference because we want http_post_completed_ to remain
« no previous file with comments | « chrome/service/gaia/service_gaia_authenticator.h ('k') | content/browser/geolocation/network_location_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698