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

Issue 10828127: Use hi-resolution favicon variants if available. (Closed)

Created:
8 years, 4 months ago by Nico
Modified:
8 years, 4 months ago
Reviewers:
jamesr, pkotwicz, sky
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Use hi-resolution favicon variants if available. This changes the favicon IPC to return all favicon variants to the browser, and hands the to the new in-browser variant selection function. Note that favicons that come from the history database will still be lodpi. Reloading a site will force the favicon to be loaded from the network. (chrome:// favicons are always loaded through the favicon cache and hence are always lodpi) BUG=138550 TEST=Go to apple.com, amazon.com, github.com, notice hidpi favicon Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150184

Patch Set 1 #

Patch Set 2 : request multiple #

Patch Set 3 : multiimg #

Patch Set 4 : works (but hacky) #

Patch Set 5 : daringfireball hackfix #

Total comments: 6

Patch Set 6 : rebase #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : simpler #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : rebase #

Patch Set 15 : . #

Patch Set 16 : rebase #

Patch Set 17 : rebase #

Patch Set 18 : rebase #

Patch Set 19 : . #

Patch Set 20 : . #

Total comments: 2

Patch Set 21 : nit #

Patch Set 22 : cros #

Patch Set 23 : cros #

Patch Set 24 : grrrrr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -48 lines) Patch
M chrome/browser/favicon/favicon_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/ash/balloon_view_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/ash/launcher/launcher_favicon_loader.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ash/launcher/launcher_favicon_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +20 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/ash/launcher/launcher_favicon_loader_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/icon_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -12 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
pkotwicz
https://chromiumcodereview.appspot.com/10828127/diff/4002/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://chromiumcodereview.appspot.com/10828127/diff/4002/chrome/browser/favicon/favicon_handler.cc#newcode523 chrome/browser/favicon/favicon_handler.cc:523: sizes.push_back(2 * image_size); // XXX mac-specific Can you use ...
8 years, 4 months ago (2012-08-02 23:47:08 UTC) #1
Nico
Thanks for the comments. This is currently just a wip patch. I'll slice it into ...
8 years, 4 months ago (2012-08-02 23:49:30 UTC) #2
Nico
Alright gentlemen, this is it. I think it came up pretty clear, except for one ...
8 years, 4 months ago (2012-08-06 20:29:19 UTC) #3
Nico
Hm, rietveld decided to omit the CL description. Here it is: """ Use hi-resolution favicon ...
8 years, 4 months ago (2012-08-06 20:29:53 UTC) #4
sky
LGTM http://codereview.chromium.org/10828127/diff/17020/chrome/browser/favicon/favicon_tab_helper.cc File chrome/browser/favicon/favicon_tab_helper.cc (right): http://codereview.chromium.org/10828127/diff/17020/chrome/browser/favicon/favicon_tab_helper.cc#newcode206 chrome/browser/favicon/favicon_tab_helper.cc:206: gfx::Image favicon(SelectFaviconFrames(bitmaps, scale_factors, requested_size)); nit: > 80
8 years, 4 months ago (2012-08-06 20:49:14 UTC) #5
jamesr
webkit/ lgtm
8 years, 4 months ago (2012-08-06 20:59:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/10828127/16004
8 years, 4 months ago (2012-08-06 21:00:09 UTC) #7
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 4 months ago (2012-08-06 22:17:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/10828127/13032
8 years, 4 months ago (2012-08-06 22:24:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/10828127/3040
8 years, 4 months ago (2012-08-06 22:47:46 UTC) #10
commit-bot: I haz the power
Try job failure for 10828127-3040 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 23:23:49 UTC) #11
commit-bot: I haz the power
8 years, 4 months ago (2012-08-06 23:27:11 UTC) #12

Powered by Google App Engine
This is Rietveld 408576698