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

Issue 11195010: Extract Favicon Download logic from FaviconTabHelper (Closed)

Created:
8 years, 2 months ago by Cait (Slow)
Modified:
8 years, 1 month ago
Reviewers:
stevenjb, joth, Jói, sky
CC:
chromium-reviews, browser-components-watch_chromium.org
Visibility:
Public.

Description

Extract Favicon Download logic from FaviconTabHelper Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165216

Patch Set 1 #

Total comments: 18

Patch Set 2 : Reviewer comments #

Total comments: 4

Patch Set 3 : DEPS and nits #

Total comments: 1

Patch Set 4 : DEPS fix and delegate #

Total comments: 11

Patch Set 5 : Extract OnUpdateFaviconURL code #

Total comments: 6

Patch Set 6 : #

Total comments: 12

Patch Set 7 : Comments #

Total comments: 16

Patch Set 8 : #

Total comments: 10

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -33 lines) Patch
M chrome/browser/favicon/DEPS View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/favicon/favicon_download_helper.h View 1 2 3 4 5 6 7 8 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/favicon/favicon_download_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/favicon/favicon_download_helper_delegate.h View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.h View 1 2 3 4 5 6 7 8 6 chunks +18 lines, -12 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -21 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Cait (Slow)
Hi Jói -- PTAL. This is a first pass at extracting the Favicon download logic ...
8 years, 2 months ago (2012-10-16 21:34:11 UTC) #1
Jói
I think you're on the right track, yes. I added a bunch of nits. Cheers, ...
8 years, 2 months ago (2012-10-16 21:56:52 UTC) #2
Cait (Slow)
http://codereview.chromium.org/11195010/diff/1/chrome/browser/favicon/favicon_download_delegate.h File chrome/browser/favicon/favicon_download_delegate.h (right): http://codereview.chromium.org/11195010/diff/1/chrome/browser/favicon/favicon_download_delegate.h#newcode15 chrome/browser/favicon/favicon_download_delegate.h:15: class FaviconDownloadDelegate { On 2012/10/16 21:56:52, Jói wrote: > ...
8 years, 2 months ago (2012-10-17 16:00:42 UTC) #3
Jói
LGTM with a nit. Will DEPS improvements be in the same change or a follow-up? ...
8 years, 2 months ago (2012-10-18 10:31:37 UTC) #4
Cait (Slow)
Added the DEPS specific_rules. Will save the history/ DEPS for a later CL though. Cheers, ...
8 years, 2 months ago (2012-10-18 15:02:46 UTC) #5
Jói
http://codereview.chromium.org/11195010/diff/2007/chrome/browser/favicon/DEPS File chrome/browser/favicon/DEPS (right): http://codereview.chromium.org/11195010/diff/2007/chrome/browser/favicon/DEPS#newcode40 chrome/browser/favicon/DEPS:40: "+chrome/browser/favicon", You probably don't want to allow all of ...
8 years, 2 months ago (2012-10-18 15:04:45 UTC) #6
Cait (Slow)
[+stevenjb, joth] stevenjb (OWNERS): PTAL: this change is so that WebView can download favicons w/o ...
8 years, 2 months ago (2012-10-18 15:29:57 UTC) #7
joth
Sorry for slow review, taken me a while to assemble all the pieces in my ...
8 years, 2 months ago (2012-10-18 21:51:13 UTC) #8
joth
On 2012/10/18 21:51:13, joth wrote: > http://codereview.chromium.org/11195010/diff/12001/chrome/browser/favicon/favicon_download_helper.h#newcode34 > chrome/browser/favicon/favicon_download_helper.h:34: static void > CreateForWebContentsAndDelegate( > nit: ...
8 years, 2 months ago (2012-10-18 22:30:00 UTC) #9
Cait (Slow)
http://codereview.chromium.org/11195010/diff/12001/chrome/browser/favicon/favicon_download_helper.cc File chrome/browser/favicon/favicon_download_helper.cc (right): http://codereview.chromium.org/11195010/diff/12001/chrome/browser/favicon/favicon_download_helper.cc#newcode56 chrome/browser/favicon/favicon_download_helper.cc:56: int id = FaviconUtil::DownloadFavicon(host, url, image_size); On 2012/10/18 21:51:13, ...
8 years, 2 months ago (2012-10-23 21:36:43 UTC) #10
sky
What is the rationale behind this change? http://codereview.chromium.org/11195010/diff/17001/chrome/browser/favicon/favicon_download_helper.h File chrome/browser/favicon/favicon_download_helper.h (right): http://codereview.chromium.org/11195010/diff/17001/chrome/browser/favicon/favicon_download_helper.h#newcode32 chrome/browser/favicon/favicon_download_helper.h:32: public base::RefCounted<FaviconDownloadHelper> ...
8 years, 2 months ago (2012-10-24 16:38:10 UTC) #11
Cait (Slow)
The rationale behind this change is to extract the favicon downloading code from the FaviconTabHelper ...
8 years, 2 months ago (2012-10-24 17:31:20 UTC) #12
sky
I like the idea of promoting this code, but I tend to think we should ...
8 years, 2 months ago (2012-10-24 20:58:34 UTC) #13
Cait (Slow)
I agree that in future it would make sense for the delegate to handle the ...
8 years, 1 month ago (2012-10-25 15:59:59 UTC) #14
sky
Jonathan, do you want the history feature? -Scott On Thu, Oct 25, 2012 at 8:59 ...
8 years, 1 month ago (2012-10-25 16:31:59 UTC) #15
joth
On 25 October 2012 09:31, Scott Violet <sky@chromium.org> wrote: > Jonathan, do you want the ...
8 years, 1 month ago (2012-10-25 22:22:07 UTC) #16
sky
On Thu, Oct 25, 2012 at 3:21 PM, Jonathan Dixon <joth@chromium.org> wrote: > > > ...
8 years, 1 month ago (2012-10-26 19:32:26 UTC) #17
Cait (Slow)
I looked into this a bit on Friday, and I don't think extracting the history-related ...
8 years, 1 month ago (2012-10-29 15:23:00 UTC) #18
sky
I don't doubt it's more complex, but it's the right thing to do long term. ...
8 years, 1 month ago (2012-10-29 18:09:13 UTC) #19
Jói
Let me jump in here for a moment to give some background. The current primary ...
8 years, 1 month ago (2012-10-29 21:03:19 UTC) #20
sky
My original thinking is all consumers of favicons want the history part so that it ...
8 years, 1 month ago (2012-10-29 23:12:13 UTC) #21
sky
http://codereview.chromium.org/11195010/diff/24001/chrome/browser/favicon/favicon_download_helper.h File chrome/browser/favicon/favicon_download_helper.h (right): http://codereview.chromium.org/11195010/diff/24001/chrome/browser/favicon/favicon_download_helper.h#newcode29 chrome/browser/favicon/favicon_download_helper.h:29: // nit: remove empty line. http://codereview.chromium.org/11195010/diff/24001/chrome/browser/favicon/favicon_download_helper.h#newcode32 chrome/browser/favicon/favicon_download_helper.h:32: public base::RefCounted<FaviconDownloadHelper> ...
8 years, 1 month ago (2012-10-29 23:12:48 UTC) #22
joth
lgtm from webview side. Thanks! https://codereview.chromium.org/11195010/diff/24001/chrome/browser/favicon/favicon_tab_helper.cc File chrome/browser/favicon/favicon_tab_helper.cc (right): https://codereview.chromium.org/11195010/diff/24001/chrome/browser/favicon/favicon_tab_helper.cc#newcode150 chrome/browser/favicon/favicon_tab_helper.cc:150: FaviconDownloadHelper::FromWebContents(web_contents()); I think it ...
8 years, 1 month ago (2012-10-30 14:17:46 UTC) #23
Cait (Slow)
http://codereview.chromium.org/11195010/diff/24001/chrome/browser/favicon/favicon_download_helper.h File chrome/browser/favicon/favicon_download_helper.h (right): http://codereview.chromium.org/11195010/diff/24001/chrome/browser/favicon/favicon_download_helper.h#newcode29 chrome/browser/favicon/favicon_download_helper.h:29: // On 2012/10/29 23:12:48, sky wrote: > nit: remove ...
8 years, 1 month ago (2012-10-30 18:05:55 UTC) #24
joth
lgtm http://codereview.chromium.org/11195010/diff/37001/chrome/browser/favicon/favicon_download_helper.h File chrome/browser/favicon/favicon_download_helper.h (right): http://codereview.chromium.org/11195010/diff/37001/chrome/browser/favicon/favicon_download_helper.h#newcode30 chrome/browser/favicon/favicon_download_helper.h:30: : public content::WebContentsObserver { nit: on one line ...
8 years, 1 month ago (2012-10-30 19:19:53 UTC) #25
sky
metro_pin_tab_helper_win could be converted to use this code too. That can be handled separately though. ...
8 years, 1 month ago (2012-10-30 19:59:38 UTC) #26
Cait (Slow)
metro_pin_tab_helper_win, balloon_view_ash, and launcher_favicon_loader will all get converted to using FaviconDownloadHelper in a later CL. ...
8 years, 1 month ago (2012-10-30 20:46:20 UTC) #27
Cait (Slow)
http://codereview.chromium.org/11195010/diff/37001/chrome/browser/favicon/favicon_download_helper.cc File chrome/browser/favicon/favicon_download_helper.cc (right): http://codereview.chromium.org/11195010/diff/37001/chrome/browser/favicon/favicon_download_helper.cc#newcode54 chrome/browser/favicon/favicon_download_helper.cc:54: std::find(download_ids_.begin(), download_ids_.end(), id); On 2012/10/30 19:59:38, sky wrote: > ...
8 years, 1 month ago (2012-10-30 20:46:33 UTC) #28
sky
LGTM http://codereview.chromium.org/11195010/diff/38009/chrome/browser/favicon/favicon_download_helper.cc File chrome/browser/favicon/favicon_download_helper.cc (right): http://codereview.chromium.org/11195010/diff/38009/chrome/browser/favicon/favicon_download_helper.cc#newcode54 chrome/browser/favicon/favicon_download_helper.cc:54: std::find(download_ids_.begin(), download_ids_.end(), id); nit: indent 4. http://codereview.chromium.org/11195010/diff/38009/chrome/browser/favicon/favicon_download_helper.h File ...
8 years, 1 month ago (2012-10-30 21:39:09 UTC) #29
Cait (Slow)
(optional) ping: stevenjb - unless you have any comments on the Favicon/ changes, I will ...
8 years, 1 month ago (2012-10-31 19:26:32 UTC) #30
stevenjb
No red flags here, I'll trust the others review.
8 years, 1 month ago (2012-10-31 19:42:10 UTC) #31
commit-bot: I haz the power
8 years, 1 month ago (2012-10-31 20:09:33 UTC) #32
Change committed as 165216

Powered by Google App Engine
This is Rietveld 408576698