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

Unified Diff: chrome/renderer/chrome_render_view_observer.cc

Issue 10821035: wip Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/ui/webui/ntp/favicon_webui_handler.cc ('k') | tools/mac/dump-static-initializers.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_view_observer.cc
diff --git a/chrome/renderer/chrome_render_view_observer.cc b/chrome/renderer/chrome_render_view_observer.cc
index 5093e43c1ee35a2d2e659b99784ac97a63950a07..dfb3d6dfea73aa4dc880be467e610d5011533310 100644
--- a/chrome/renderer/chrome_render_view_observer.cc
+++ b/chrome/renderer/chrome_render_view_observer.cc
@@ -327,6 +327,12 @@ void ChromeRenderViewObserver::OnJavaScriptStressTestControl(int cmd,
void ChromeRenderViewObserver::OnDownloadFavicon(int id,
const GURL& image_url,
int image_size) {
+ // I don't have much of an opinion on whether IconMsg_DownloadFavicon decodes
+ // just a single frame for an .ico file or attempts to decode frames for all
+ // ui::GetSupportedScaleFactors() / gfx::Screen::GetScaleFactorsInUse(). I
+ // expect other people to have opinions though. Check with oshima@, he might
+ // have an opinion about this. Please ping me if you want to discuss or if
+ // something I wrote is confusing.
bool data_image_failed = false;
if (image_url.SchemeIs("data")) {
SkBitmap data_image = ImageFromDataUrl(image_url);
« no previous file with comments | « chrome/browser/ui/webui/ntp/favicon_webui_handler.cc ('k') | tools/mac/dump-static-initializers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698