| Index: chrome/browser/chromeos/login/profile_image_downloader.cc
|
| diff --git a/chrome/browser/chromeos/login/profile_image_downloader.cc b/chrome/browser/chromeos/login/profile_image_downloader.cc
|
| index 0a6b9cc981b6e8d60b2b16c48c2f26f2792e85f0..827d16152ee485e7c25f18a52c402010e1e605dc 100644
|
| --- a/chrome/browser/chromeos/login/profile_image_downloader.cc
|
| +++ b/chrome/browser/chromeos/login/profile_image_downloader.cc
|
| @@ -153,17 +153,14 @@ void ProfileImageDownloader::StartFetchingImage() {
|
|
|
| ProfileImageDownloader::~ProfileImageDownloader() {}
|
|
|
| -void ProfileImageDownloader::OnURLFetchComplete(
|
| - const URLFetcher* source,
|
| - const GURL& url,
|
| - const net::URLRequestStatus& status,
|
| - int response_code,
|
| - const net::ResponseCookies& cookies,
|
| - const std::string& data) {
|
| +void ProfileImageDownloader::OnURLFetchComplete(const URLFetcher* source) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - if (response_code != 200) {
|
| - LOG(ERROR) << "Response code is " << response_code;
|
| - LOG(ERROR) << "Url is " << url.spec();
|
| +
|
| + const std::string& data = source->GetResponseStringRef();
|
| +
|
| + if (source->response_code() != 200) {
|
| + LOG(ERROR) << "Response code is " << source->response_code();
|
| + LOG(ERROR) << "Url is " << source->url().spec();
|
| LOG(ERROR) << "Data is " << data;
|
| if (delegate_)
|
| delegate_->OnDownloadFailure();
|
|
|