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

Side by Side Diff: chrome/service/gaia/service_gaia_authenticator.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/service/gaia/service_gaia_authenticator.h" 5 #include "chrome/service/gaia/service_gaia_authenticator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "chrome/service/net/service_url_request_context.h" 9 #include "chrome/service/net/service_url_request_context.h"
10 #include "chrome/service/service_process.h" 10 #include "chrome/service/service_process.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ret = kMaxBackoffDelaySeconds; 71 ret = kMaxBackoffDelaySeconds;
72 } 72 }
73 return ret; 73 return ret;
74 } 74 }
75 75
76 ServiceGaiaAuthenticator::~ServiceGaiaAuthenticator() {} 76 ServiceGaiaAuthenticator::~ServiceGaiaAuthenticator() {}
77 77
78 void ServiceGaiaAuthenticator::DoPost(const GURL& post_url, 78 void ServiceGaiaAuthenticator::DoPost(const GURL& post_url,
79 const std::string& post_body) { 79 const std::string& post_body) {
80 DCHECK(io_message_loop_proxy_->BelongsToCurrentThread()); 80 DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
81 content::URLFetcher* request = content::URLFetcher::Create( 81 net::URLFetcher* request = content::URLFetcher::Create(
82 post_url, content::URLFetcher::POST, this); 82 post_url, net::URLFetcher::POST, this);
83 request->SetRequestContext( 83 request->SetRequestContext(
84 g_service_process->GetServiceURLRequestContextGetter()); 84 g_service_process->GetServiceURLRequestContextGetter());
85 request->SetUploadData("application/x-www-form-urlencoded", post_body); 85 request->SetUploadData("application/x-www-form-urlencoded", post_body);
86 request->Start(); 86 request->Start();
87 } 87 }
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher.cc ('k') | content/browser/geolocation/network_location_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698