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(); |
} |