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

Issue 1064823002: Componentize FaviconTabHelper (Closed)

Created:
5 years, 8 months ago by sdefresne
Modified:
5 years, 8 months ago
Reviewers:
droger, sadrul, miu
CC:
chromium-reviews, jam, browser-components-watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@favicon-notification
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize FaviconTabHelper Split FaviconTabHelper into three classes depending on what can be shared with iOS (FaviconDriverImpl), what only depends on //content (ContentFaviconDriver) and what depends on //chrome (FaviconTabHelper). FaviconTabHelper still exists to provide an easier factory (as ContentFaviconDriver cannot access KeyedService factories defined in //chrome) as FaviconTabHelper::CreateForWebContents() is called from multiple locations in //chrome code and to provide an implementation for FaviconTabHelper::ShouldDisplayFavicon (this method will be turned into a free function in a followup CL as it only depends on WebContents public interface, not on ContentFaviconDriver). Introduce WebFaviconDriver, an iOS implementation of FaviconDriver that uses FaviconDriverImpl to share as much code as possible with the ContentFaviconDriver. BUG=370877, 472117 Committed: https://crrev.com/70a04802728cbdc0c3da3c5a43fd2aa6feaf1ca8 Cr-Commit-Position: refs/heads/master@{#324430}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Rebase and address comments #

Total comments: 1

Patch Set 3 : Fix dependencies in .gyp/.gn files #

Patch Set 4 : Fix missing "override" on destructors #

Patch Set 5 : Fix BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+906 lines, -470 lines) Patch
M chrome/browser/favicon/favicon_handler_unittest.cc View 2 chunks +29 lines, -2 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.h View 1 2 chunks +8 lines, -131 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 2 chunks +20 lines, -316 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper_browsertest.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/favicon.gypi View 1 2 4 chunks +14 lines, -1 line 0 comments Download
M components/favicon/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/content/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A components/favicon/content/content_favicon_driver.h View 1 2 3 1 chunk +88 lines, -0 lines 0 comments Download
A components/favicon/content/content_favicon_driver.cc View 1 2 3 1 chunk +182 lines, -0 lines 0 comments Download
M components/favicon/core/BUILD.gn View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M components/favicon/core/favicon_driver.h View 1 3 chunks +42 lines, -9 lines 0 comments Download
A components/favicon/core/favicon_driver.cc View 1 chunk +35 lines, -0 lines 0 comments Download
A components/favicon/core/favicon_driver_impl.h View 1 2 3 1 chunk +98 lines, -0 lines 0 comments Download
A components/favicon/core/favicon_driver_impl.cc View 1 chunk +178 lines, -0 lines 0 comments Download
M components/favicon/core/favicon_handler.h View 3 chunks +4 lines, -2 lines 0 comments Download
M components/favicon/core/favicon_handler.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A components/favicon/ios/web_favicon_driver.h View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A components/favicon/ios/web_favicon_driver.cc View 1 2 3 1 chunk +122 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
sdefresne
droger: please take a look miu: please review as OWNERS of chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc sky: please ...
5 years, 8 months ago (2015-04-07 14:32:32 UTC) #4
droger
Looks good from a high level. Mostly nits below. It's a bit hard to review, ...
5 years, 8 months ago (2015-04-07 15:33:24 UTC) #5
sdefresne
https://codereview.chromium.org/1064823002/diff/40001/chrome/browser/favicon/favicon_tab_helper.h File chrome/browser/favicon/favicon_tab_helper.h (right): https://codereview.chromium.org/1064823002/diff/40001/chrome/browser/favicon/favicon_tab_helper.h#newcode16 chrome/browser/favicon/favicon_tab_helper.h:16: static FaviconTabHelper* FromWebContents(content::WebContents* web_contents); On 2015/04/07 15:33:24, droger wrote: ...
5 years, 8 months ago (2015-04-07 16:50:06 UTC) #6
sdefresne
On 2015/04/07 15:33:24, droger wrote: > Looks good from a high level. Mostly nits below. ...
5 years, 8 months ago (2015-04-07 16:52:49 UTC) #7
droger
It looks like the patch set where the comments are adressed has not been uploaded. ...
5 years, 8 months ago (2015-04-07 17:01:56 UTC) #8
sdefresne
On 2015/04/07 17:01:56, droger wrote: > It looks like the patch set where the comments ...
5 years, 8 months ago (2015-04-08 07:57:12 UTC) #9
droger
lgtm https://codereview.chromium.org/1064823002/diff/140001/components/favicon.gypi File components/favicon.gypi (right): https://codereview.chromium.org/1064823002/diff/140001/components/favicon.gypi#newcode78 components/favicon.gypi:78: 'favicon_core', Your new file depends on base and ...
5 years, 8 months ago (2015-04-08 09:31:59 UTC) #12
sdefresne
On 2015/04/08 09:31:59, droger wrote: > lgtm > > https://codereview.chromium.org/1064823002/diff/140001/components/favicon.gypi > File components/favicon.gypi (right): > ...
5 years, 8 months ago (2015-04-08 17:07:36 UTC) #15
miu
*tab_strip_controller.* lgtm
5 years, 8 months ago (2015-04-08 20:24:24 UTC) #16
sdefresne
sadrul: please review the new DEPS on //ui/base ** Presubmit ERRORS ** Missing LGTM from ...
5 years, 8 months ago (2015-04-09 08:40:45 UTC) #18
sadrul
On 2015/04/09 08:40:45, sdefresne wrote: > sadrul: please review the new DEPS on //ui/base > ...
5 years, 8 months ago (2015-04-09 13:15:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1064823002/200001
5 years, 8 months ago (2015-04-09 13:21:07 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:200001)
5 years, 8 months ago (2015-04-09 14:00:28 UTC) #23
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 14:01:19 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/70a04802728cbdc0c3da3c5a43fd2aa6feaf1ca8
Cr-Commit-Position: refs/heads/master@{#324430}

Powered by Google App Engine
This is Rietveld 408576698