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

Issue 10911149: Cleanup FaviconHandler (Closed)

Created:
8 years, 3 months ago by pkotwicz
Modified:
8 years, 3 months ago
Reviewers:
rjkroege, sky
CC:
chromium-reviews
Visibility:
Public.

Description

Cleanup FaviconHandler code now that http://codereview.chromium.org/10870022/ has landed. Fix FaviconHandler::DownloadImage to return the best matching unresized bitmap as specified in favicon_tab_helper.h Bug=130896 Test=FaviconHandlerTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156222

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Nicer diff #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : Changes as requested #

Patch Set 6 : #

Patch Set 7 : Added comment #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -134 lines) Patch
M chrome/browser/favicon/favicon_handler.h View 1 2 3 4 5 6 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +90 lines, -64 lines 0 comments Download
M chrome/browser/favicon/favicon_handler_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +90 lines, -6 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -8 lines 0 comments Download
M chrome/browser/history/select_favicon_frames.h View 1 2 3 4 5 2 chunks +12 lines, -14 lines 0 comments Download
M chrome/browser/history/select_favicon_frames.cc View 1 2 3 5 3 chunks +13 lines, -25 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
pkotwicz
8 years, 3 months ago (2012-09-07 16:00:50 UTC) #1
rjkroege
http://codereview.chromium.org/10911149/diff/2001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): http://codereview.chromium.org/10911149/diff/2001/chrome/browser/favicon/favicon_handler.cc#newcode88 chrome/browser/favicon/favicon_handler.cc:88: bool HasExpiredResult( why change the name if the function ...
8 years, 3 months ago (2012-09-07 16:45:46 UTC) #2
pkotwicz
http://codereview.chromium.org/10911149/diff/2001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): http://codereview.chromium.org/10911149/diff/2001/chrome/browser/favicon/favicon_handler.cc#newcode250 chrome/browser/favicon/favicon_handler.cc:250: SetHistoryFavicon(url, icon_url, image_data, icon_type); The resizing occurs in FaviconTabHelper::OnDidDownloadFavicon ...
8 years, 3 months ago (2012-09-07 17:25:39 UTC) #3
rjkroege
On 2012/09/07 17:25:39, pkotwicz wrote: > http://codereview.chromium.org/10911149/diff/2001/chrome/browser/favicon/favicon_handler.cc > File chrome/browser/favicon/favicon_handler.cc (right): > > http://codereview.chromium.org/10911149/diff/2001/chrome/browser/favicon/favicon_handler.cc#newcode250 > ...
8 years, 3 months ago (2012-09-07 19:41:26 UTC) #4
pkotwicz
Fixed FaviconHandler::DownloadImage() to return an unresized image in callback as specified in favicon_tab_helper.h Added unittest ...
8 years, 3 months ago (2012-09-09 22:03:18 UTC) #5
rjkroege
http://codereview.chromium.org/10911149/diff/8001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): http://codereview.chromium.org/10911149/diff/8001/chrome/browser/favicon/favicon_handler.cc#newcode99 chrome/browser/favicon/favicon_handler.cc:99: bool HasValidResult( You have several very similar loops. Your ...
8 years, 3 months ago (2012-09-10 15:57:07 UTC) #6
pkotwicz
http://codereview.chromium.org/10911149/diff/8001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): http://codereview.chromium.org/10911149/diff/8001/chrome/browser/favicon/favicon_handler.cc#newcode99 chrome/browser/favicon/favicon_handler.cc:99: bool HasValidResult( On 2012/09/10 15:57:08, rjkroege wrote: > You ...
8 years, 3 months ago (2012-09-10 17:34:38 UTC) #7
rjkroege
lgtm
8 years, 3 months ago (2012-09-11 20:04:52 UTC) #8
pkotwicz
Scott can you please take a look?
8 years, 3 months ago (2012-09-11 21:16:53 UTC) #9
sky
LGTM
8 years, 3 months ago (2012-09-11 23:03:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10911149/11028
8 years, 3 months ago (2012-09-11 23:36:14 UTC) #11
commit-bot: I haz the power
Try job failure for 10911149-11028 (retry) on win for step "runhooks" (clobber build). It's a ...
8 years, 3 months ago (2012-09-12 00:39:49 UTC) #12
Nico
On 2012/09/12 00:39:49, I haz the power (commit-bot) wrote: > Try job failure for 10911149-11028 ...
8 years, 3 months ago (2012-09-12 00:46:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10911149/11028
8 years, 3 months ago (2012-09-12 00:52:52 UTC) #14
commit-bot: I haz the power
8 years, 3 months ago (2012-09-12 03:25:07 UTC) #15
Change committed as 156222

Powered by Google App Engine
This is Rietveld 408576698