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

Unified Diff: chrome/service/gaia/service_gaia_authenticator.cc

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares 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 106929)
+++ chrome/service/gaia/service_gaia_authenticator.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/message_loop_proxy.h"
#include "chrome/service/net/service_url_request_context.h"
#include "chrome/service/service_process.h"
+#include "content/common/net/url_fetcher.h"
#include "googleurl/src/gurl.h"
ServiceGaiaAuthenticator::ServiceGaiaAuthenticator(
@@ -70,11 +71,11 @@
request->Start();
}
-// URLFetcher::Delegate implementation
+// content::URLFetcherDelegate implementation
void ServiceGaiaAuthenticator::OnURLFetchComplete(const URLFetcher* source) {
DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
http_response_code_ = source->response_code();
- response_data_ = source->GetResponseStringRef();
+ source->GetResponseAsString(&response_data_);
delete source;
// Add an extra reference because we want http_post_completed_ to remain
// valid until after Signal() returns.

Powered by Google App Engine
This is Rietveld 408576698