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

Issue 2876263003: Simplify FaviconHandler::OnFaviconDataForInitialURLFromFaviconService() (Closed)

Created:
3 years, 7 months ago by pkotwicz
Modified:
3 years, 7 months ago
Reviewers:
mastiz
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify FaviconHandler::OnFaviconDataForInitialURLFromFaviconService() This CL changes OnFaviconDataForInitialURLFromFaviconService() to call NotifyFaviconUpdated() if the database has a valid bitmap for the page URL regardless of the order that OnFaviconDataForInitialURLFromFaviconService() and OnUpdateCandidates() were called. Previously: If OnFaviconDataForInitialURLFromFaviconService() is called after OnUpdateCandidates(): NotifyFaviconUpdated() is called from OnFaviconDataForInitialURLFromFaviconService() only if the icon URL in the database matches the <link rel="icon"> on the page. If OnFaviconDataForInitialURLFromFaviconService() is called before OnUpdateCandidates(): NotifyFaviconUpdated() is called from OnFaviconDataForInitialURLFromFaviconService() if the database has a valid bitmap for the page URL. BUG=None Review-Url: https://codereview.chromium.org/2876263003 Cr-Commit-Position: refs/heads/master@{#471767} Committed: https://chromium.googlesource.com/chromium/src/+/e5564e57b495715eba8c8cd12da775abc45c5db7

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -27 lines) Patch
M components/favicon/core/favicon_handler.cc View 2 chunks +5 lines, -27 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
pkotwicz
Mikel, can you please take a look?
3 years, 7 months ago (2017-05-13 17:26:46 UTC) #2
mastiz
LGTM! About the CL description: 1. I'd recommend starting with the last paragraph, i.e. the ...
3 years, 7 months ago (2017-05-15 05:21:35 UTC) #3
pkotwicz
Updated the comments as you requested (Thanks for the catch about the function names)
3 years, 7 months ago (2017-05-15 14:07:28 UTC) #5
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/2876263003/1
3 years, 7 months ago (2017-05-15 14:07:56 UTC) #7
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 15:09:48 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e5564e57b495715eba8c8cd12da7...

Powered by Google App Engine
This is Rietveld 408576698