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

Issue 1119163003: Save large icons to a new LARGE_ICON type

Created:
5 years, 7 months ago by Roger McFarlane (Chromium)
Modified:
5 years, 4 months ago
Reviewers:
beaudoin, huangs, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Save large icons to a new LARGE_ICON type This CL adds a new LARGE_ICON value to the favicon_base::IconType enum. On platforms where large icons are not the preferred favicon image (and are not currently download by default), the largest icon declared by a URL, sourced from its favicons and/or touch icons, is saved to the favicon database under this new icon type value. This allow the large icon to co-exist along side the current small favicon population on desktop. On mobile, large favicon and touch icons are already collected by default, so this additional functionality is not enabled on mobile. Notes: - The enabling of this functionality is currently behind a flag/experiment. - A placeholder TODO denotes the location where the favicon record could be added (and the URL processing skipped) to transition to download-on-demand for large icon bitmaps. Design Doc: https://docs.google.com/document/d/1rv4x3goTWFJzQu5a_h94xfNhSUG3sU98lfxa1Prys1w/edit BUG=467712

Patch Set 1 #

Patch Set 2 : fix try bots #

Total comments: 10

Patch Set 3 : Address Sam's initial feedback. #

Total comments: 5

Patch Set 4 : reformat a comment #

Total comments: 13

Patch Set 5 : more clarifying comments. #

Patch Set 6 : yet more clarifying comments #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -15 lines) Patch
M components/favicon/core/favicon_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M components/favicon/core/favicon_handler.cc View 1 2 3 4 5 5 chunks +25 lines, -5 lines 4 comments Download
M components/favicon/core/favicon_handler_unittest.cc View 3 chunks +6 lines, -8 lines 0 comments Download
M components/favicon/core/large_icon_service.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon_base/favicon_types.h View 1 2 3 4 1 chunk +16 lines, -1 line 2 comments Download
M components/history/core/browser/history_backend.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (5 generated)
Roger McFarlane (Chromium)
I revisited the "new icon type" design alternative. This is a MUCH simpler way to ...
5 years, 7 months ago (2015-05-01 22:59:41 UTC) #1
Roger McFarlane (Chromium)
(adding reviewers for realz this time) I revisited the "new icon type" design alternative. This ...
5 years, 7 months ago (2015-05-01 23:00:23 UTC) #3
huangs
Oops forgot about this. We've discussed this result off line, and should continue with this ...
5 years, 7 months ago (2015-05-04 05:17:30 UTC) #4
Roger McFarlane (Chromium)
Thanks. Another look? https://chromiumcodereview.appspot.com/1119163003/diff/20001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://chromiumcodereview.appspot.com/1119163003/diff/20001/components/favicon/core/favicon_handler.cc#newcode354 components/favicon/core/favicon_handler.cc:354: // TODO(rogerm): To use fetch on ...
5 years, 7 months ago (2015-05-04 18:48:15 UTC) #5
Roger McFarlane (Chromium)
Note: there were a rebase-update in there that picked up some changes not related to ...
5 years, 7 months ago (2015-05-04 19:40:34 UTC) #6
huangs
Looks good, but anticipating further discussion from pkotwicz@. https://chromiumcodereview.appspot.com/1119163003/diff/40001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://chromiumcodereview.appspot.com/1119163003/diff/40001/components/favicon/core/large_icon_service.cc#newcode19 components/favicon/core/large_icon_service.cc:19: large_icon_types_.push_back(favicon_base::IconType::TOUCH_ICON); ...
5 years, 7 months ago (2015-05-04 20:00:44 UTC) #7
Roger McFarlane (Chromium)
https://chromiumcodereview.appspot.com/1119163003/diff/40001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://chromiumcodereview.appspot.com/1119163003/diff/40001/components/favicon/core/large_icon_service.cc#newcode19 components/favicon/core/large_icon_service.cc:19: large_icon_types_.push_back(favicon_base::IconType::TOUCH_ICON); On 2015/05/04 20:00:44, huangs wrote: > Please wrap ...
5 years, 7 months ago (2015-05-04 20:16:56 UTC) #8
huangs
LGTM. https://chromiumcodereview.appspot.com/1119163003/diff/40001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://chromiumcodereview.appspot.com/1119163003/diff/40001/components/favicon/core/large_icon_service.cc#newcode19 components/favicon/core/large_icon_service.cc:19: large_icon_types_.push_back(favicon_base::IconType::TOUCH_ICON); Ah I see, since LARGE_ICON would have ...
5 years, 7 months ago (2015-05-04 20:20:04 UTC) #9
beaudoin
https://codereview.chromium.org/1119163003/diff/60001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/1119163003/diff/60001/components/favicon/core/favicon_handler.cc#newcode456 components/favicon/core/favicon_handler.cc:456: // No more icons to request, set the favicon ...
5 years, 7 months ago (2015-05-05 00:54:00 UTC) #10
Roger McFarlane (Chromium)
Thanks. Peter? https://codereview.chromium.org/1119163003/diff/60001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/1119163003/diff/60001/components/favicon/core/favicon_handler.cc#newcode456 components/favicon/core/favicon_handler.cc:456: // No more icons to request, set ...
5 years, 7 months ago (2015-05-05 15:09:48 UTC) #12
Roger McFarlane (Chromium)
ping?
5 years, 7 months ago (2015-05-05 19:44:15 UTC) #13
beaudoin
LGTM with one optional improvement to save future readers a WTF moment. :) https://chromiumcodereview.appspot.com/1119163003/diff/60001/components/favicon/core/favicon_handler.cc File ...
5 years, 7 months ago (2015-05-05 19:47:52 UTC) #14
Roger McFarlane (Chromium)
Thanks. +sky@ for OWNERS https://codereview.chromium.org/1119163003/diff/60001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/1119163003/diff/60001/components/favicon/core/favicon_handler.cc#newcode566 components/favicon/core/favicon_handler.cc:566: return 192; On 2015/05/05 19:47:52, ...
5 years, 7 months ago (2015-05-06 16:06:16 UTC) #16
sky
On 2015/05/06 16:06:16, Roger McFarlane (Chromium) wrote: > Thanks. > > +sky@ for OWNERS > ...
5 years, 7 months ago (2015-05-06 19:30:02 UTC) #17
sky
I'm not convinced we need a new type at the db level. Also, I thought ...
5 years, 7 months ago (2015-05-06 19:50:42 UTC) #18
Roger McFarlane (Chromium)
Re: Download on demand. This is a precursor CL to add large favicon handling to ...
5 years, 7 months ago (2015-05-06 21:22:51 UTC) #19
sky
I'm confused about this patch. You say download on demand but this isn't download on ...
5 years, 7 months ago (2015-05-07 15:42:11 UTC) #20
Roger McFarlane (Chromium)
On 2015/05/07 15:42:11, sky wrote: > I'm confused about this patch. You say download on ...
5 years, 7 months ago (2015-05-07 15:54:17 UTC) #21
sky
My concern is that this is downloading an saving right now, not what was discussed. ...
5 years, 7 months ago (2015-05-07 15:58:37 UTC) #22
Roger McFarlane (Chromium)
The FaviconHandler for LARGE is only enabled behind a flag, which is only manually specified ...
5 years, 7 months ago (2015-05-07 16:09:59 UTC) #23
sky
Yep. And I'm saying you remove that check and never create LARGE until this doesn't ...
5 years, 7 months ago (2015-05-07 16:16:10 UTC) #24
sky
My understanding of what we agreed upon is download on demand. To do download on ...
5 years, 7 months ago (2015-05-07 17:37:25 UTC) #25
Roger McFarlane (Chromium)
Yes, download on demand is what we agreed to and what we're moving towards. At ...
5 years, 7 months ago (2015-05-07 18:38:23 UTC) #26
sky
I favor recording all image urls so that features that want to download (and potentially ...
5 years, 7 months ago (2015-05-07 19:46:53 UTC) #27
Roger McFarlane (Chromium)
That's fair enough, though I worry about YAGNI. I think that means we need to ...
5 years, 7 months ago (2015-05-07 20:58:41 UTC) #28
sky
On Thu, May 7, 2015 at 1:58 PM, Roger McFarlane <rogerm@chromium.org> wrote: > That's fair ...
5 years, 7 months ago (2015-05-07 23:16:28 UTC) #29
Roger McFarlane (Chromium)
So, a concern we've got in building this feature out is that there isn't consensus ...
5 years, 7 months ago (2015-05-08 19:18:07 UTC) #30
sky
I prefer seeing things done the right way. If you don't, and you land this, ...
5 years, 7 months ago (2015-05-08 21:09:50 UTC) #31
harryyu
Just a minor note from the involved PM. After weighing the advantages of having this ...
5 years, 7 months ago (2015-05-11 22:39:53 UTC) #32
sky
I still stand by my comments. I prefer this done the way we want the ...
5 years, 7 months ago (2015-05-11 23:01:14 UTC) #33
pkotwicz
Roger, what's the status?
5 years, 7 months ago (2015-05-21 20:28:17 UTC) #34
Roger McFarlane (Chromium)
On 2015/05/21 20:28:17, pkotwicz wrote: > Roger, what's the status? This appears to be dead ...
5 years, 7 months ago (2015-05-22 13:31:17 UTC) #35
beaudoin
5 years, 4 months ago (2015-08-11 17:01:37 UTC) #36
Removing myself from reviewers to clean things up.

Powered by Google App Engine
This is Rietveld 408576698