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

Issue 2721363002: Extend LargeIconService to fetch missing favicons from a Google server (Closed)

Created:
3 years, 9 months ago by mastiz
Modified:
3 years, 9 months ago
CC:
chromium-reviews, pkl (ping after 24h if needed), droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, browser-components-watch_chromium.org, noyau+watch_chromium.org, asvitkine+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extend LargeIconService to fetch missing favicons from a Google server (Based on original work by jkrcal@) Design Doc: go/favicon-pe-google-server Showing good large icons independently of the local favicon cache is important for synced content or for content suggested from the server-side (such as tiles and suggestions on New Tab Page on Android). This CL extends the service by a dedicated API that allows clients to fetch favicons/largeicons from Google server. No actual use of the functionality is introduced in this patch. BUG=644102 Review-Url: https://codereview.chromium.org/2721363002 Cr-Commit-Position: refs/heads/master@{#459392} Committed: https://chromium.googlesource.com/chromium/src/+/bf4de3ff1c10a7ca6b1c4ca00451165f18fa1eef

Patch Set 1 #

Patch Set 2 : Fixed build dependencies. #

Patch Set 3 : Minor changes. #

Patch Set 4 : More missing dependencies. #

Patch Set 5 : Added missing dependencies. #

Total comments: 27

Patch Set 6 : Addressed comments. #

Total comments: 12

Patch Set 7 : Addressed comments. #

Patch Set 8 : Disable cookies. #

Patch Set 9 : Rebased. #

Patch Set 10 : Rebased. #

Patch Set 11 : Rebased. #

Patch Set 12 : Rebased. #

Patch Set 13 : Rebase&update #

Patch Set 14 : Rebased. #

Patch Set 15 : Adopted CreateIOSImageDecoder. #

Patch Set 16 : Extend LargeIconService to fetch missing favicons from a Google server #

Total comments: 6

Patch Set 17 : Addressed comments. #

Patch Set 18 : Fix iOS. #

Patch Set 19 : Fixed iOS. #

Patch Set 20 : Fixed public_deps. #

Total comments: 5

Patch Set 21 : Addressed comments. #

Total comments: 2

Patch Set 22 : Rename to ExtractSkBitmapsToStore. #

Patch Set 23 : Trim page URL before sending to servers. #

Patch Set 24 : Removed accidental #DEPS#. #

Patch Set 25 : Reverted more changes. #

Patch Set 26 : Add fallback_opts=TYPE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -45 lines) Patch
M chrome/browser/favicon/large_icon_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +12 lines, -4 lines 0 comments Download
M components/data_use_measurement/core/data_use_user_data.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/data_use_measurement/core/data_use_user_data.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/favicon/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 20 2 chunks +3 lines, -0 lines 0 comments Download
M components/favicon/core/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M components/favicon/core/favicon_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +14 lines, -0 lines 0 comments Download
M components/favicon/core/favicon_service_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M components/favicon/core/favicon_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +29 lines, -14 lines 0 comments Download
M components/favicon/core/large_icon_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +29 lines, -1 line 0 comments Download
M components/favicon/core/large_icon_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +96 lines, -4 lines 0 comments Download
M components/favicon/core/large_icon_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 12 chunks +171 lines, -16 lines 0 comments Download
M components/favicon/core/test/mock_favicon_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M ios/chrome/app/spotlight/spotlight_manager_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/favicon/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/favicon/ios_chrome_large_icon_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/history/favicon_view_provider_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/reading_list/reading_list_collection_view_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/reading_list/reading_list_coordinator_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 93 (62 generated)
mastiz
Picking up jan's work since he's OOO (original CL was https://codereview.chromium.org/2685173002/, now trimmed down to ...
3 years, 9 months ago (2017-03-01 16:05:45 UTC) #4
mastiz
Friendly ping, thanks!
3 years, 9 months ago (2017-03-03 14:29:58 UTC) #16
pkotwicz
Your CL looks mostly good. It is also much smaller than I expected (which makes ...
3 years, 9 months ago (2017-03-03 22:33:25 UTC) #21
mastiz
Thanks, PTAL! https://codereview.chromium.org/2721363002/diff/80001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2721363002/diff/80001/components/favicon/core/large_icon_service.cc#newcode32 components/favicon/core/large_icon_service.cc:32: using image_fetcher::ImageFetcher; On 2017/03/03 22:33:25, pkotwicz wrote: ...
3 years, 9 months ago (2017-03-06 10:25:33 UTC) #22
pkotwicz
https://codereview.chromium.org/2721363002/diff/80001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2721363002/diff/80001/components/favicon/core/large_icon_service.cc#newcode42 components/favicon/core/large_icon_service.cc:42: int min_source_size_in_pixel) { I see your point now https://codereview.chromium.org/2721363002/diff/80001/components/favicon/core/large_icon_service.cc#newcode202 ...
3 years, 9 months ago (2017-03-08 05:38:16 UTC) #23
mastiz
PTAL, modulo missing tests, thanks! https://codereview.chromium.org/2721363002/diff/80001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2721363002/diff/80001/components/favicon/core/large_icon_service.cc#newcode202 components/favicon/core/large_icon_service.cc:202: // available and use ...
3 years, 9 months ago (2017-03-08 16:37:34 UTC) #24
pkotwicz
https://codereview.chromium.org/2721363002/diff/80001/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2721363002/diff/80001/components/history/core/browser/history_backend.cc#newcode1749 components/history/core/browser/history_backend.cc:1749: The sync code uses |page_url| if |icon_url| is missing ...
3 years, 9 months ago (2017-03-09 02:25:57 UTC) #25
mastiz
https://codereview.chromium.org/2721363002/diff/80001/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2721363002/diff/80001/components/history/core/browser/history_backend.cc#newcode1749 components/history/core/browser/history_backend.cc:1749: On 2017/03/09 02:25:57, pkotwicz wrote: > The sync code ...
3 years, 9 months ago (2017-03-15 16:58:10 UTC) #26
mastiz
treib@: can you please take a look at all ImageFetcher-related changes? Thx! I can split ...
3 years, 9 months ago (2017-03-15 17:00:39 UTC) #28
pkotwicz
https://codereview.chromium.org/2721363002/diff/80001/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2721363002/diff/80001/components/history/core/browser/history_backend.cc#newcode1749 components/history/core/browser/history_backend.cc:1749: In this case, this function should check that there ...
3 years, 9 months ago (2017-03-16 00:50:45 UTC) #29
mastiz
PTAL, thx! https://codereview.chromium.org/2721363002/diff/80001/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2721363002/diff/80001/components/history/core/browser/history_backend.cc#newcode1749 components/history/core/browser/history_backend.cc:1749: On 2017/03/16 00:50:45, pkotwicz wrote: > In ...
3 years, 9 months ago (2017-03-21 12:09:17 UTC) #32
pkotwicz
LGTM with nits https://codereview.chromium.org/2721363002/diff/100001/components/favicon/core/large_icon_service.h File components/favicon/core/large_icon_service.h (right): https://codereview.chromium.org/2721363002/diff/100001/components/favicon/core/large_icon_service.h#newcode58 components/favicon/core/large_icon_service.h:58: // favicon server and stores the ...
3 years, 9 months ago (2017-03-21 18:20:30 UTC) #48
pkotwicz
LGTM with nits
3 years, 9 months ago (2017-03-21 18:20:34 UTC) #49
mastiz
sdefresne@: please review changes in: ios/ components/data_use_measurement/ https://codereview.chromium.org/2721363002/diff/100001/components/favicon/core/large_icon_service.h File components/favicon/core/large_icon_service.h (right): https://codereview.chromium.org/2721363002/diff/100001/components/favicon/core/large_icon_service.h#newcode58 components/favicon/core/large_icon_service.h:58: // favicon ...
3 years, 9 months ago (2017-03-22 09:46:53 UTC) #51
mastiz
sdefresne@: friendly ping, thanks!
3 years, 9 months ago (2017-03-23 08:38:34 UTC) #68
jkrcal
https://codereview.chromium.org/2721363002/diff/380001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2721363002/diff/380001/components/favicon/core/large_icon_service.cc#newcode41 components/favicon/core/large_icon_service.cc:41: kGoogleServerV2RequestFormat, page_url.spec().c_str(), Can we remove query & fragment from ...
3 years, 9 months ago (2017-03-23 08:58:22 UTC) #69
sdefresne
https://codereview.chromium.org/2721363002/diff/380001/components/favicon/core/BUILD.gn File components/favicon/core/BUILD.gn (right): https://codereview.chromium.org/2721363002/diff/380001/components/favicon/core/BUILD.gn#newcode29 components/favicon/core/BUILD.gn:29: public_deps = [ I don't think this whole public_deps ...
3 years, 9 months ago (2017-03-23 10:24:42 UTC) #70
mastiz
sdefresne@: PTAL, thanks! https://codereview.chromium.org/2721363002/diff/380001/components/favicon/core/BUILD.gn File components/favicon/core/BUILD.gn (right): https://codereview.chromium.org/2721363002/diff/380001/components/favicon/core/BUILD.gn#newcode29 components/favicon/core/BUILD.gn:29: public_deps = [ On 2017/03/23 10:24:41, ...
3 years, 9 months ago (2017-03-23 12:03:23 UTC) #71
pkotwicz
https://codereview.chromium.org/2721363002/diff/400001/components/favicon/core/favicon_service_impl.cc File components/favicon/core/favicon_service_impl.cc (right): https://codereview.chromium.org/2721363002/diff/400001/components/favicon/core/favicon_service_impl.cc#newcode39 components/favicon/core/favicon_service_impl.cc:39: std::vector<SkBitmap> GetFaviconBitmapsToSave(const gfx::Image& image) { Maybe rename this method ...
3 years, 9 months ago (2017-03-23 14:35:03 UTC) #72
mastiz
PTAL! Addressed comment, and one extra change: I got a bit paranoid about URLs sent ...
3 years, 9 months ago (2017-03-23 15:28:17 UTC) #73
sdefresne
Remove components/image_fetcher/content/#DEPS#?
3 years, 9 months ago (2017-03-23 16:29:09 UTC) #74
mastiz
On 2017/03/23 16:29:09, sdefresne wrote: > Remove components/image_fetcher/content/#DEPS#? Done, sorry.
3 years, 9 months ago (2017-03-23 16:36:01 UTC) #75
sdefresne
lgtm
3 years, 9 months ago (2017-03-23 16:40:02 UTC) #76
mastiz
On 2017/03/23 16:36:01, mastiz wrote: > On 2017/03/23 16:29:09, sdefresne wrote: > > Remove components/image_fetcher/content/#DEPS#? ...
3 years, 9 months ago (2017-03-23 16:42:15 UTC) #77
mastiz
On 2017/03/23 16:42:15, mastiz wrote: > On 2017/03/23 16:36:01, mastiz wrote: > > On 2017/03/23 ...
3 years, 9 months ago (2017-03-23 19:31:32 UTC) #82
mastiz
asvitkine@: please take a look at histograms.xml, thx!
3 years, 9 months ago (2017-03-23 19:33:33 UTC) #84
Alexei Svitkine (slow)
lgtm
3 years, 9 months ago (2017-03-23 19:45:50 UTC) #85
mastiz
jkrcal@: friendly ping, thx! I added yet another URL param as per request by bingwang@: ...
3 years, 9 months ago (2017-03-24 08:55:24 UTC) #86
jkrcal
Still lgtm, thanks!
3 years, 9 months ago (2017-03-24 09:04:06 UTC) #87
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/2721363002/500001
3 years, 9 months ago (2017-03-24 10:14:42 UTC) #90
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 11:45:41 UTC) #93
Message was sent while issue was closed.
Committed patchset #26 (id:500001) as
https://chromium.googlesource.com/chromium/src/+/bf4de3ff1c10a7ca6b1c4ca00451...

Powered by Google App Engine
This is Rietveld 408576698