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

Issue 1084473002: Simplify FaviconHandler (Closed)

Created:
5 years, 8 months ago by pkotwicz
Modified:
5 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@fix_favicon4
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify FaviconHandler This CL: - Removes the |is_active_favicon| parameter from NotifyFaviconAvailable() since its value can be computed from member variables - Refactors FaviconHandler::OnDidDownloadFavicon() to exit early if the URL for which the favicon was downloaded is unexpected - Changes FaviconHandler::FetchFavicon() to reset as much state as possible. - Changes the signature of FaviconHandler::ScheduleDownload() to void because its return value is never used - Removes unused member variable FaviconHandler::waiting_for_favicon_service_data_ BUG=None TEST=None Committed: https://crrev.com/e002b6edc1407681c20a84f5b7cf3b249791a0bc Cr-Commit-Position: refs/heads/master@{#326042}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -57 lines) Patch
M components/favicon/core/favicon_handler.h View 3 chunks +5 lines, -10 lines 0 comments Download
M components/favicon/core/favicon_handler.cc View 1 10 chunks +47 lines, -47 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
pkotwicz
rogerm@ PTAL This CL makes things slightly better There are several other things which can ...
5 years, 8 months ago (2015-04-13 02:55:30 UTC) #7
Roger McFarlane (Chromium)
LGTM https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc#newcode326 components/favicon/core/favicon_handler.cc:326: bool is_active_favicon = How would this interact with ...
5 years, 8 months ago (2015-04-13 14:21:49 UTC) #8
pkotwicz
sky@ for OWNERS https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc#newcode326 components/favicon/core/favicon_handler.cc:326: bool is_active_favicon = Downloads initiated from ...
5 years, 8 months ago (2015-04-13 15:59:21 UTC) #10
sky
https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (left): https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc#oldcode301 components/favicon/core/favicon_handler.cc:301: if (!UrlMatches(url, url_) || PageChangedSinceFaviconWasRequested()) On 2015/04/13 02:55:30, pkotwicz ...
5 years, 8 months ago (2015-04-13 19:47:37 UTC) #11
pkotwicz
https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (left): https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc#oldcode301 components/favicon/core/favicon_handler.cc:301: if (!UrlMatches(url, url_) || PageChangedSinceFaviconWasRequested()) I am still checking ...
5 years, 8 months ago (2015-04-13 20:06:47 UTC) #12
sky
https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (left): https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc#oldcode301 components/favicon/core/favicon_handler.cc:301: if (!UrlMatches(url, url_) || PageChangedSinceFaviconWasRequested()) On 2015/04/13 20:06:46, pkotwicz ...
5 years, 8 months ago (2015-04-13 21:01:22 UTC) #13
pkotwicz
https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (left): https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc#oldcode301 components/favicon/core/favicon_handler.cc:301: if (!UrlMatches(url, url_) || PageChangedSinceFaviconWasRequested()) I made this change ...
5 years, 8 months ago (2015-04-13 21:19:18 UTC) #14
sky
https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (left): https://codereview.chromium.org/1084473002/diff/80001/components/favicon/core/favicon_handler.cc#oldcode301 components/favicon/core/favicon_handler.cc:301: if (!UrlMatches(url, url_) || PageChangedSinceFaviconWasRequested()) On 2015/04/13 21:19:18, pkotwicz ...
5 years, 8 months ago (2015-04-13 22:50:42 UTC) #15
pkotwicz
sky@ can you please take another look? Sorry for taking so long to get back ...
5 years, 8 months ago (2015-04-19 23:59:05 UTC) #16
sky
Given that this feature has been broken for a while. Lets nuke it. On Sun, ...
5 years, 8 months ago (2015-04-20 15:25:14 UTC) #17
pkotwicz
Scott, which changes do you want me to make to this CL?
5 years, 8 months ago (2015-04-20 15:30:49 UTC) #18
Roger McFarlane (Chromium)
I'm concerned about how this feature (or lack thereof, if we nuke it) will interact ...
5 years, 8 months ago (2015-04-20 15:31:40 UTC) #19
pkotwicz
rogerm@, we don't know yet how download on demand will work. We are creating LargeIconService ...
5 years, 8 months ago (2015-04-20 15:40:02 UTC) #20
sky
LGTM
5 years, 8 months ago (2015-04-20 19:07:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1084473002/80001
5 years, 8 months ago (2015-04-21 14:28:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1084473002/100001
5 years, 8 months ago (2015-04-21 14:51:21 UTC) #26
commit-bot: I haz the power
Committed patchset #2 (id:100001)
5 years, 8 months ago (2015-04-21 15:45:21 UTC) #27
commit-bot: I haz the power
5 years, 8 months ago (2015-04-21 15:46:04 UTC) #28
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e002b6edc1407681c20a84f5b7cf3b249791a0bc
Cr-Commit-Position: refs/heads/master@{#326042}

Powered by Google App Engine
This is Rietveld 408576698