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

Issue 2891333002: Introduce dedicated enum value for icons from Web Manifests (Closed)

Created:
3 years, 7 months ago by mastiz
Modified:
3 years, 7 months ago
CC:
chromium-reviews, tfarina, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, Matt Giuca, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce dedicated enum value for icons from Web Manifests This enum is used to cache icons in the local database and by multiple API calls to either select or prioritize favicons of different kind. By introducing a new value (WEB_MANIFEST_ICON) we could allow UIs to use them or not. This allows an improvement in the fetching logic which is now trivial to implement: Manifest icons should compete with Touch Icons rather than regular favicons (i.e. if manifest icons are available, there is no need to fetch touch icons, because the first are usually a good replacement). BUG=690383 Review-Url: https://codereview.chromium.org/2891333002 Cr-Commit-Position: refs/heads/master@{#475149} Committed: https://chromium.googlesource.com/chromium/src/+/1267cdae719e984677103603b58af30c6bf166f7

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed comments. #

Patch Set 3 : Fix. #

Patch Set 4 : Updated test. #

Patch Set 5 : Updated iOS code. #

Total comments: 4

Patch Set 6 : Addressed comments. #

Patch Set 7 : Put browsertest behind #if. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -43 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/favicon/FaviconHelper.java View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/favicon/content_favicon_driver_browsertest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/content/content_favicon_driver.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/favicon/core/favicon_driver_impl.cc View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M components/favicon/core/favicon_handler.cc View 1 4 chunks +9 lines, -5 lines 0 comments Download
M components/favicon/core/favicon_handler_unittest.cc View 1 7 chunks +22 lines, -15 lines 0 comments Download
M components/favicon/core/large_icon_service.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/ios/favicon_url_util.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/favicon_base/favicon_types.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M components/history/core/browser/history_backend_unittest.cc View 1 2 3 1 chunk +15 lines, -1 line 0 comments Download
M ios/web/public/favicon_url.h View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (18 generated)
mastiz
I'm not entirely convinced this change is desirable, but I see some important upsides so ...
3 years, 7 months ago (2017-05-19 10:33:15 UTC) #2
Eugene But (OOO till 7-30)
lgtm for ios/web if you land this https://codereview.chromium.org/2891333002/diff/1/ios/web/public/favicon_url.h File ios/web/public/favicon_url.h (right): https://codereview.chromium.org/2891333002/diff/1/ios/web/public/favicon_url.h#newcode24 ios/web/public/favicon_url.h:24: WEB_MANIFEST_ICON = ...
3 years, 7 months ago (2017-05-19 14:21:31 UTC) #4
mastiz
pkotwicz@: friendly ping.
3 years, 7 months ago (2017-05-22 05:17:58 UTC) #5
pkotwicz
I will take a look tomorrow sorry for the delay. (Monday was a holiday for ...
3 years, 7 months ago (2017-05-24 05:13:20 UTC) #6
pkotwicz
+sky@ for his opinion on the new icon type (because he probably has one). I ...
3 years, 7 months ago (2017-05-24 14:27:44 UTC) #8
sky
I agree that the new type seems right.
3 years, 7 months ago (2017-05-24 18:08:53 UTC) #9
mastiz
Thanks, PTAL. https://codereview.chromium.org/2891333002/diff/1/chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc File chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc (right): https://codereview.chromium.org/2891333002/diff/1/chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc#newcode63 chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc:63: icon_types.push_back(favicon_base::IconType::WEB_MANIFEST_ICON); On 2017/05/24 14:27:44, pkotwicz wrote: > ...
3 years, 7 months ago (2017-05-25 11:14:17 UTC) #11
pkotwicz
I'll take a look at the CL tomorrow morning
3 years, 7 months ago (2017-05-26 06:15:42 UTC) #19
pkotwicz
LGTM with nits https://codereview.chromium.org/2891333002/diff/1/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2891333002/diff/1/components/favicon/core/large_icon_service.cc#newcode298 components/favicon/core/large_icon_service.cc:298: favicon_base::IconType::TOUCH_ICON, I see now. Sorry for ...
3 years, 7 months ago (2017-05-26 14:49:56 UTC) #20
mastiz
Comments addressed, thanks. https://codereview.chromium.org/2891333002/diff/80001/components/favicon/core/favicon_driver_impl.cc File components/favicon/core/favicon_driver_impl.cc (right): https://codereview.chromium.org/2891333002/diff/80001/components/favicon/core/favicon_driver_impl.cc#newcode107 components/favicon/core/favicon_driver_impl.cc:107: // override inline favicons). On 2017/05/26 ...
3 years, 7 months ago (2017-05-26 18:30:25 UTC) #21
mastiz
sky@: would you mind taking a look, at history component and possibly beyond? Thx!
3 years, 7 months ago (2017-05-26 18:31:33 UTC) #22
sky
I only looked at history, LGTM
3 years, 7 months ago (2017-05-26 19:50:36 UTC) #23
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/2891333002/120001
3 years, 7 months ago (2017-05-26 20:33:12 UTC) #29
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 21:57:33 UTC) #32
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/1267cdae719e984677103603b58a...

Powered by Google App Engine
This is Rietveld 408576698