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

Issue 2691933004: Avoid cyclic dependency FaviconHandler<-->FaviconDriverImpl (Closed)

Created:
3 years, 10 months ago by mastiz
Modified:
3 years, 9 months ago
Reviewers:
pkotwicz
CC:
chromium-reviews, jam, darin-cc_chromium.org, Eugene But (OOO till 7-30)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid cyclic dependency FaviconHandler<-->FaviconDriverImpl This patch reduces the exposed public API and introduces a delegate instead of a hardwired dependency such that FaviconHandler is more testable and has clear semantics. BUG=694312 Review-Url: https://codereview.chromium.org/2691933004 Cr-Commit-Position: refs/heads/master@{#453882} Committed: https://chromium.googlesource.com/chromium/src/+/16aeb9f7c312208faf699a2aaa1c9792546b59e8

Patch Set 1 #

Total comments: 2

Patch Set 2 : WIP. #

Patch Set 3 : WIP. #

Patch Set 4 : Rebased. #

Patch Set 5 : Rebased. #

Patch Set 6 : Rebased. #

Patch Set 7 : Rebased. #

Patch Set 8 : Minor fix. #

Total comments: 29

Patch Set 9 : Rebased. #

Patch Set 10 : Rebased. #

Patch Set 11 : Revert comments. #

Patch Set 12 : Address comments. #

Patch Set 13 : Address comments. #

Total comments: 2

Patch Set 14 : Addressed more comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -429 lines) Patch
M components/favicon/content/content_favicon_driver.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -9 lines 0 comments Download
M components/favicon/content/content_favicon_driver.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +20 lines, -20 lines 0 comments Download
M components/favicon/core/favicon_driver.h View 2 chunks +0 lines, -30 lines 0 comments Download
M components/favicon/core/favicon_driver_impl.h View 1 2 3 3 chunks +9 lines, -16 lines 0 comments Download
M components/favicon/core/favicon_driver_impl.cc View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
M components/favicon/core/favicon_handler.h View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +63 lines, -26 lines 0 comments Download
M components/favicon/core/favicon_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +24 lines, -24 lines 0 comments Download
M components/favicon/core/favicon_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 63 chunks +226 lines, -271 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.h View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.mm View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +11 lines, -11 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 45 (35 generated)
pkotwicz
I don't have any objections to your CL. It is unclear that your CL will ...
3 years, 10 months ago (2017-02-13 23:35:48 UTC) #3
pkotwicz
Just nits! https://codereview.chromium.org/2691933004/diff/140001/chrome/browser/sessions/session_restore_delegate.cc File chrome/browser/sessions/session_restore_delegate.cc (right): https://codereview.chromium.org/2691933004/diff/140001/chrome/browser/sessions/session_restore_delegate.cc#newcode80 chrome/browser/sessions/session_restore_delegate.cc:80: // is unlikely to do any good. ...
3 years, 10 months ago (2017-02-22 02:37:54 UTC) #30
mastiz
Thanks, PTAL! https://codereview.chromium.org/2691933004/diff/1/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/2691933004/diff/1/components/favicon/core/favicon_handler.cc#newcode556 components/favicon/core/favicon_handler.cc:556: // TODO(mastiz): Fix. On 2017/02/13 23:35:48, pkotwicz ...
3 years, 9 months ago (2017-02-23 21:55:54 UTC) #31
pkotwicz
https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc#newcode663 components/favicon/core/favicon_handler.cc:663: if (!image_url.is_valid()) { There might be multiple icon URLs. ...
3 years, 9 months ago (2017-02-24 16:04:47 UTC) #36
mastiz
PTAL. https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc#newcode663 components/favicon/core/favicon_handler.cc:663: if (!image_url.is_valid()) { On 2017/02/24 16:04:46, pkotwicz wrote: ...
3 years, 9 months ago (2017-02-24 20:29:30 UTC) #37
pkotwicz
LGTM https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc#newcode663 components/favicon/core/favicon_handler.cc:663: if (!image_url.is_valid()) { The DCHECK is ok. We ...
3 years, 9 months ago (2017-02-27 16:53:09 UTC) #38
mastiz
Thanks for the review! https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc#newcode663 components/favicon/core/favicon_handler.cc:663: if (!image_url.is_valid()) { On 2017/02/27 ...
3 years, 9 months ago (2017-02-27 21:08:59 UTC) #39
pkotwicz
https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/2691933004/diff/140001/components/favicon/core/favicon_handler.cc#newcode663 components/favicon/core/favicon_handler.cc:663: if (!image_url.is_valid()) { Leaving it is ok.
3 years, 9 months ago (2017-02-27 23:43:34 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2691933004/250001
3 years, 9 months ago (2017-03-01 07:47:42 UTC) #42
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 08:34:12 UTC) #45
Message was sent while issue was closed.
Committed patchset #14 (id:250001) as
https://chromium.googlesource.com/chromium/src/+/16aeb9f7c312208faf699a2aaa1c...

Powered by Google App Engine
This is Rietveld 408576698