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

Unified Diff: chrome/browser/google_apis/gdata_contacts_requests.cc

Issue 26784003: google_apis: Implement google_apis::ResponseWriter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 7 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/google_apis/base_requests.cc ('k') | net/tools/get_server_time/get_server_time.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/gdata_contacts_requests.cc
diff --git a/chrome/browser/google_apis/gdata_contacts_requests.cc b/chrome/browser/google_apis/gdata_contacts_requests.cc
index 35d1a4a4aac88f6c719a369959633d777a12acda..eb1c51b7dc3bfbb83341a725e5514c4c60f7653e 100644
--- a/chrome/browser/google_apis/gdata_contacts_requests.cc
+++ b/chrome/browser/google_apis/gdata_contacts_requests.cc
@@ -101,8 +101,7 @@ GURL GetContactPhotoRequest::GetURL() const {
void GetContactPhotoRequest::ProcessURLFetchResults(
const net::URLFetcher* source) {
GDataErrorCode code = GetErrorCode(source);
- scoped_ptr<std::string> data(new std::string);
- source->GetResponseAsString(data.get());
+ scoped_ptr<std::string> data(new std::string(response_writer()->data()));
callback_.Run(code, data.Pass());
OnProcessURLFetchResultsComplete();
}
« no previous file with comments | « chrome/browser/google_apis/base_requests.cc ('k') | net/tools/get_server_time/get_server_time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698