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

Unified Diff: components/favicon/ios/web_favicon_driver.mm

Issue 2749283002: components/image_fetcher: Add a from_http_cache flag to RequestMetadata (Closed)
Patch Set: test Created 3 years, 9 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 | « no previous file | components/image_fetcher/image_data_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/favicon/ios/web_favicon_driver.mm
diff --git a/components/favicon/ios/web_favicon_driver.mm b/components/favicon/ios/web_favicon_driver.mm
index 47011b046cd86aad4d13143289030a2cd3b2e381..500a5f4c435bd145ec08900747301fe90d606aa2 100644
--- a/components/favicon/ios/web_favicon_driver.mm
+++ b/components/favicon/ios/web_favicon_driver.mm
@@ -77,8 +77,8 @@ int WebFaviconDriver::DownloadImage(const GURL& url,
image_fetcher::IOSImageDataFetcherCallback local_callback =
^(NSData* data, const image_fetcher::RequestMetadata& metadata) {
- if (metadata.response_code ==
- image_fetcher::ImageDataFetcher::RESPONSE_CODE_INVALID)
+ if (metadata.http_response_code ==
+ image_fetcher::RequestMetadata::RESPONSE_CODE_INVALID)
return;
std::vector<SkBitmap> frames;
@@ -89,7 +89,7 @@ int WebFaviconDriver::DownloadImage(const GURL& url,
sizes.push_back(gfx::Size(frame.width(), frame.height()));
}
}
- callback.Run(local_download_id, metadata.response_code, local_url,
+ callback.Run(local_download_id, metadata.http_response_code, local_url,
frames, sizes);
};
image_fetcher_.FetchImageDataWebpDecoded(url, local_callback);
« no previous file with comments | « no previous file | components/image_fetcher/image_data_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698