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

Issue 6672065: Support touch icon in FaviconHelper (Closed)

Created:
9 years, 9 months ago by michaelbai
Modified:
9 years, 6 months ago
Visibility:
Public.

Description

a Downloaded or retrieved favicon and touch in FaviconHelper. b.ViewHostMsg_UpdateFaviconURL can update multiple icon urls BUG=71571 TEST=Tested with existing unit test and add 2 new unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81158 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81258

Patch Set 1 #

Patch Set 2 : Only cache FAVICON, and might disable fetching touch icon for desktop browser #

Patch Set 3 : Only update the FAVICON data to the NavigationEntry. #

Total comments: 31

Patch Set 4 : sync #

Patch Set 5 : Feature completed #

Patch Set 6 : fix some style issues #

Total comments: 56

Patch Set 7 : Addressed the comments and move the favicon source part out. #

Patch Set 8 : Reset candidates when FaviconURL is updated #

Total comments: 8

Patch Set 9 : addressed issue #

Patch Set 10 : Addressed comments #

Total comments: 6

Patch Set 11 : Added unittest and modified FaviconHelper making it testable. #

Patch Set 12 : fix style #

Total comments: 50

Patch Set 13 : Addressed the comments #

Patch Set 14 : Address the comments #

Patch Set 15 : address the comments #

Total comments: 6

Patch Set 16 : Address the comments and sync #

Patch Set 17 : fix git try error #

Patch Set 18 : Fix some git try issues #

Patch Set 19 : Sync code #

Patch Set 20 : Fix Mac unittest failed #

Patch Set 21 : Sync again #

Patch Set 22 : remove unused code. #

Patch Set 23 : Fix the git try issue. #

Patch Set 24 : Fix compile error for clank mac and unit test memory leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1275 lines, -143 lines) Patch
M chrome/browser/defaults.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/defaults.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/favicon_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 8 chunks +111 lines, -28 lines 0 comments Download
M chrome/browser/favicon_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 8 chunks +213 lines, -97 lines 0 comments Download
A chrome/browser/favicon_helper_unittest.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 +767 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_contents.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 +12 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.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 +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/web_applications/web_app_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/most_visited_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi 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, -0 lines 0 comments Download
M chrome/chrome_tests.gypi 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 +1 line, -0 lines 0 comments Download
A chrome/common/icon_messages.h View 1 2 3 4 5 6 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/common/icon_messages.cc View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.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 4 chunks +15 lines, -1 line 0 comments Download
M content/renderer/render_view.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 2 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
michaelbai
Could you help to give a quick review of the design of this draft version? ...
9 years, 9 months ago (2011-03-17 00:11:36 UTC) #1
sky
As I mentioned previously, I don't think this makes sense. Touch icons are too big ...
9 years, 9 months ago (2011-03-17 14:43:47 UTC) #2
michaelbai
Updated a. Only cache FAVICON. b. Disable fetching touch icon. c. added some design questions
9 years, 9 months ago (2011-03-17 15:59:19 UTC) #3
michaelbai
Added FaviconDelegate to only update FAVICON to NavigationEntry Please check again if there any other ...
9 years, 9 months ago (2011-03-18 00:09:08 UTC) #4
sky
http://codereview.chromium.org/6672065/diff/6001/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/6001/chrome/browser/favicon_helper.cc#newcode110 chrome/browser/favicon_helper.cc:110: i != candidates.end(); +i) { ++i http://codereview.chromium.org/6672065/diff/6001/chrome/browser/favicon_helper.cc#newcode122 chrome/browser/favicon_helper.cc:122: if ...
9 years, 9 months ago (2011-03-18 17:33:37 UTC) #5
jam
http://codereview.chromium.org/6672065/diff/6001/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/6001/chrome/browser/favicon_helper.cc#newcode143 chrome/browser/favicon_helper.cc:143: message_handled_ = true; On 2011/03/18 17:33:37, sky wrote: > ...
9 years, 9 months ago (2011-03-18 18:40:45 UTC) #6
michaelbai
http://codereview.chromium.org/6672065/diff/6001/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/6001/chrome/browser/favicon_helper.cc#newcode143 chrome/browser/favicon_helper.cc:143: message_handled_ = true; On 2011/03/18 18:40:45, John Abd-El-Malek wrote: ...
9 years, 9 months ago (2011-03-18 19:18:38 UTC) #7
michaelbai
1. Addressed all comments. 2. Added touch icon support in FaviconSource. 3. This version can ...
9 years, 9 months ago (2011-03-22 18:14:13 UTC) #8
sky
http://codereview.chromium.org/6672065/diff/12029/chrome/browser/defaults.h File chrome/browser/defaults.h (right): http://codereview.chromium.org/6672065/diff/12029/chrome/browser/defaults.h#newcode86 chrome/browser/defaults.h:86: extern bool enable_touch_icon; This should be above line 72, ...
9 years, 9 months ago (2011-03-22 19:48:48 UTC) #9
michaelbai
http://codereview.chromium.org/6672065/diff/12029/chrome/browser/defaults.h File chrome/browser/defaults.h (right): http://codereview.chromium.org/6672065/diff/12029/chrome/browser/defaults.h#newcode86 chrome/browser/defaults.h:86: extern bool enable_touch_icon; On 2011/03/22 19:48:48, sky wrote: > ...
9 years, 9 months ago (2011-03-22 23:59:03 UTC) #10
sky
http://codereview.chromium.org/6672065/diff/12029/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/12029/chrome/browser/favicon_helper.cc#newcode127 chrome/browser/favicon_helper.cc:127: size_t candidates_count = favicon_candidates_.size(); On 2011/03/22 23:59:03, michaelbai wrote: ...
9 years, 9 months ago (2011-03-23 00:04:35 UTC) #11
michaelbai
http://codereview.chromium.org/6672065/diff/12029/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/12029/chrome/browser/favicon_helper.cc#newcode127 chrome/browser/favicon_helper.cc:127: size_t candidates_count = favicon_candidates_.size(); On 2011/03/23 00:04:35, sky wrote: ...
9 years, 9 months ago (2011-03-23 15:49:43 UTC) #12
michaelbai
Got you, I updated CL, please check it again
9 years, 9 months ago (2011-03-23 17:09:01 UTC) #13
sky
http://codereview.chromium.org/6672065/diff/17004/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/17004/chrome/browser/favicon_helper.cc#newcode200 chrome/browser/favicon_helper.cc:200: } else if (++current_url_index_ < urls_.size() && What happens ...
9 years, 9 months ago (2011-03-23 22:49:31 UTC) #14
michaelbai
Addressed all issues, please check it again. Thanks http://codereview.chromium.org/6672065/diff/17004/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/17004/chrome/browser/favicon_helper.cc#newcode200 chrome/browser/favicon_helper.cc:200: } ...
9 years, 9 months ago (2011-03-23 23:26:49 UTC) #15
sky
http://codereview.chromium.org/6672065/diff/27020/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/27020/chrome/browser/favicon_helper.cc#newcode70 chrome/browser/favicon_helper.cc:70: urls_.empty(); clear http://codereview.chromium.org/6672065/diff/27020/chrome/browser/favicon_helper.cc#newcode153 chrome/browser/favicon_helper.cc:153: urls_.empty(); clear. I can only ...
9 years, 9 months ago (2011-03-23 23:45:04 UTC) #16
michaelbai
http://codereview.chromium.org/6672065/diff/27020/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/27020/chrome/browser/favicon_helper.cc#newcode70 chrome/browser/favicon_helper.cc:70: urls_.empty(); On 2011/03/23 23:45:04, sky wrote: > clear Done. ...
9 years, 9 months ago (2011-03-25 22:52:30 UTC) #17
sky
http://codereview.chromium.org/6672065/diff/22004/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/22004/chrome/browser/favicon_helper.cc#newcode169 chrome/browser/favicon_helper.cc:169: if (!favicon_expired_ && current_candidate()->icon_type == ::FAVICON && You have ...
9 years, 9 months ago (2011-03-28 15:02:58 UTC) #18
michaelbai
http://codereview.chromium.org/6672065/diff/22004/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/22004/chrome/browser/favicon_helper.cc#newcode169 chrome/browser/favicon_helper.cc:169: if (!favicon_expired_ && current_candidate()->icon_type == ::FAVICON && On 2011/03/28 ...
9 years, 9 months ago (2011-03-29 00:00:50 UTC) #19
sky
LGTM with the following nits fixed. -Scott http://codereview.chromium.org/6672065/diff/44020/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): http://codereview.chromium.org/6672065/diff/44020/chrome/browser/favicon_helper.cc#newcode98 chrome/browser/favicon_helper.cc:98: preferred_icon_size() == ...
9 years, 9 months ago (2011-03-29 16:07:22 UTC) #20
michaelbai
Hi Avi, Would you like help to review this CL Thanks http://codereview.chromium.org/6672065/diff/44020/chrome/browser/favicon_helper.cc File chrome/browser/favicon_helper.cc (right): ...
9 years, 8 months ago (2011-04-08 22:33:34 UTC) #21
michaelbai
Hi Brettw, As you are the owner of content/renderer/render_view.cc, Could you help to review the ...
9 years, 8 months ago (2011-04-08 22:51:22 UTC) #22
Avi (use Gerrit)
I feel extremely awkward here; as I'm a little confused by the design, and having ...
9 years, 8 months ago (2011-04-09 02:48:50 UTC) #23
michaelbai
I think you may worried about the favicon message handler in TabContent. This issue has ...
9 years, 8 months ago (2011-04-11 16:04:53 UTC) #24
Avi (use Gerrit)
On 2011/04/11 16:04:53, michaelbai wrote: > I think you may worried about the favicon message ...
9 years, 8 months ago (2011-04-11 16:24:52 UTC) #25
michaelbai
Sure, I will have a new CL to fix this. On 2011/04/11 16:24:52, Avi wrote: ...
9 years, 8 months ago (2011-04-11 17:00:09 UTC) #26
Avi (use Gerrit)
On 2011/04/11 17:00:09, michaelbai wrote: > Sure, I will have a new CL to fix ...
9 years, 8 months ago (2011-04-11 17:50:46 UTC) #27
Avi (use Gerrit)
As discussed in chat, a new CL will be forthcoming to address the encapsulation issue. ...
9 years, 8 months ago (2011-04-11 17:53:57 UTC) #28
brettw
9 years, 8 months ago (2011-04-11 18:06:58 UTC) #29
content LGTM

Powered by Google App Engine
This is Rietveld 408576698