DescriptionSimplify 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 #
Messages
Total messages: 10 (5 generated)
|