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

Issue 1118073002: Simplify FaviconDriverImpl by removing extra FaviconHandler member.

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

Description

Simplify FaviconDriverImpl by removing extra FaviconHandler member. This CL removes the large_icon_handler_ instance from the FaviconDriverImpl without changing the overall functionality. This instance used to provide large icon handling that was identical to the already extant, but not always enabled, touch_icon_handler_ instance. If those two instances were enabled at the same time, they would step on each other's toes trying to update the history backend with multiple updates for a given touch icon. If the large favicon handler was expanded to also be responsible for fetching large representation of FAVICO images, it would also step on the toes of the (always enabled) favicon handler. The large icon handler does not need to exist, when large icons are needed, the already existing touch icon handler can be enabled and the already existing favicon handler can be instructed to download large images. Design Doc: https://docs.google.com/document/d/1rv4x3goTWFJzQu5a_h94xfNhSUG3sU98lfxa1Prys1w/edit BUG=467712

Patch Set 1 #

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

Messages

Total messages: 11 (3 generated)
Roger McFarlane (Chromium)
PTAL. This CL gets rid of the problem where the favicon handlers can step on ...
5 years, 7 months ago (2015-04-30 19:11:12 UTC) #2
pkotwicz
Doesn't this CL change which favicon/favicon bitmap is downloaded and saved to history? With this ...
5 years, 7 months ago (2015-04-30 20:11:14 UTC) #3
pkotwicz
For the sake of clarity, I am describing the change in behavior w.r.t to running ...
5 years, 7 months ago (2015-04-30 20:12:50 UTC) #4
huangs
On 2015/04/30 20:12:50, pkotwicz wrote: > For the sake of clarity, I am describing the ...
5 years, 7 months ago (2015-04-30 20:23:28 UTC) #5
huangs
Some comments. https://chromiumcodereview.appspot.com/1118073002/diff/1/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://chromiumcodereview.appspot.com/1118073002/diff/1/components/favicon/core/favicon_handler.cc#newcode544 components/favicon/core/favicon_handler.cc:544: #if defined(OS_ANDROID) Can we remove the OS_ANDROID ...
5 years, 7 months ago (2015-04-30 20:23:41 UTC) #6
Roger McFarlane (Chromium)
No, Peter is right. Upon further testing... this doesn't work. Not sure what I was ...
5 years, 7 months ago (2015-04-30 22:42:03 UTC) #7
pkotwicz
Adding a size comparison to the deletion matcher would still be suboptimal. It would be ...
5 years, 7 months ago (2015-04-30 23:07:03 UTC) #8
beaudoin
5 years, 4 months ago (2015-08-11 17:01:44 UTC) #9
Removing myself from reviewers to clean things up.

Powered by Google App Engine
This is Rietveld 408576698