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

Issue 2794343002: Network traffic annotation added to image_data_fetcher. (Closed)

Created:
3 years, 8 months ago by Ramin Halavati
Modified:
3 years, 7 months ago
CC:
chromium-reviews, battre
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Network traffic annotation added to image_data_fetcher. Network traffic annotation is added to network request of components/image_fetcher/core/image_data_fetcher.cc BUG=656607 Review-Url: https://codereview.chromium.org/2794343002 Cr-Commit-Position: refs/heads/master@{#473188} Committed: https://chromium.googlesource.com/chromium/src/+/6072a6b7d7d0992e45f8cc64cc62d2e8b766786c

Patch Set 1 #

Total comments: 8

Patch Set 2 : Annotation moved to callers. #

Total comments: 60

Patch Set 3 : All comments addressed. #

Patch Set 4 : All comments addressed. #

Total comments: 26

Patch Set 5 : All comments addressed. #

Total comments: 2

Patch Set 6 : Comment addressed. #

Patch Set 7 : Android and iOS files added. #

Total comments: 14

Patch Set 8 : Favicon Annotation updated. #

Total comments: 7

Patch Set 9 : Comments addressed, new files added. #

Patch Set 10 : Android update. #

Total comments: 16

Patch Set 11 : Annotation updated. #

Total comments: 7

Patch Set 12 : Comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -89 lines) Patch
M chrome/browser/chromeos/hats/hats_notification_controller.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/hats/hats_notification_controller_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/search/thumbnail_source.cc View 1 2 3 4 5 6 7 8 2 chunks +35 lines, -1 line 0 comments Download
M components/doodle/doodle_service.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +26 lines, -1 line 0 comments Download
M components/doodle/doodle_service_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 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 1 chunk +25 lines, -1 line 0 comments Download
M components/favicon/core/large_icon_service_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +10 lines, -9 lines 0 comments Download
M components/image_fetcher/core/image_data_fetcher.h View 1 2 3 2 chunks +11 lines, -6 lines 0 comments Download
M components/image_fetcher/core/image_data_fetcher.cc View 1 2 3 1 chunk +9 lines, -5 lines 0 comments Download
M components/image_fetcher/core/image_data_fetcher_unittest.cc View 1 2 3 8 chunks +27 lines, -13 lines 0 comments Download
M components/image_fetcher/core/image_fetcher.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M components/image_fetcher/core/image_fetcher_impl.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M components/image_fetcher/core/image_fetcher_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -3 lines 0 comments Download
M components/image_fetcher/ios/ios_image_data_fetcher_wrapper.mm View 1 2 3 4 5 6 3 chunks +6 lines, -4 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -1 line 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +10 lines, -8 lines 0 comments Download
M components/ntp_tiles/icon_cacher_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -1 line 0 comments Download
M components/ntp_tiles/icon_cacher_impl_unittest.cc View 1 2 3 4 5 6 7 8 12 chunks +14 lines, -12 lines 0 comments Download
M components/suggestions/image_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +38 lines, -2 lines 0 comments Download
M components/suggestions/image_manager_unittest.cc View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 106 (56 generated)
Ramin Halavati
We are annotating all network requests in Chromium with a new NetworkTrafficAnnotation scheme. This allows ...
3 years, 8 months ago (2017-04-04 13:51:34 UTC) #2
Ramin Halavati
On 2017/04/04 13:51:34, Ramin Halavati wrote: > We are annotating all network requests in Chromium ...
3 years, 8 months ago (2017-04-11 06:41:22 UTC) #3
markusheintz_
On 2017/04/11 06:41:22, Ramin Halavati wrote: > On 2017/04/04 13:51:34, Ramin Halavati wrote: > > ...
3 years, 8 months ago (2017-04-11 08:56:34 UTC) #4
Ramin Halavati
On 2017/04/11 08:56:34, markusheintz_ wrote: > On 2017/04/11 06:41:22, Ramin Halavati wrote: > > On ...
3 years, 8 months ago (2017-04-24 07:15:54 UTC) #5
markusheintz_
https://codereview.chromium.org/2794343002/diff/1/components/image_fetcher/core/image_data_fetcher.cc File components/image_fetcher/core/image_data_fetcher.cc (right): https://codereview.chromium.org/2794343002/diff/1/components/image_fetcher/core/image_data_fetcher.cc#newcode72 components/image_fetcher/core/image_data_fetcher.cc:72: sender: "..." Is there a description of the fields? ...
3 years, 7 months ago (2017-05-03 09:04:08 UTC) #6
Ramin Halavati
On 2017/05/03 09:04:08, markusheintz_ wrote: > https://codereview.chromium.org/2794343002/diff/1/components/image_fetcher/core/image_data_fetcher.cc > File components/image_fetcher/core/image_data_fetcher.cc (right): > > https://codereview.chromium.org/2794343002/diff/1/components/image_fetcher/core/image_data_fetcher.cc#newcode72 > ...
3 years, 7 months ago (2017-05-03 09:16:47 UTC) #7
Ramin Halavati
Markus, Annotation moved to arguments, please review: components/image_fetcher/core/* Marc: Please suggest annotations for: chrome/browser/search/thumbnail_source.cc chrome/browser/search/suggestions/suggestions_service_factory.cc ...
3 years, 7 months ago (2017-05-09 09:14:47 UTC) #9
Marc Treib
+sfiera for chrome_most_visited_sites_factory https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc File chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc (right): https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc#newcode117 chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc:117: net::NetworkTrafficAnnotationTag traffic_annotation = icon_cacher_traffic_annotation https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/search/suggestions/suggestions_service_factory.cc File ...
3 years, 7 months ago (2017-05-09 09:43:47 UTC) #11
sfiera
https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc File chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc (right): https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc#newcode120 chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc:120: sender: "..." Popular Sites New Tab Fetch https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc#newcode121 chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc:121: ...
3 years, 7 months ago (2017-05-09 10:08:17 UTC) #12
Ramin Halavati
All comments addressed, please review. https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc File chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc (right): https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc#newcode117 chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc:117: net::NetworkTrafficAnnotationTag traffic_annotation = On ...
3 years, 7 months ago (2017-05-09 11:08:24 UTC) #13
sfiera
https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc File chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc (right): https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc#newcode123 chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc:123: data: "..." On 2017/05/09 11:08:23, Ramin Halavati wrote: > ...
3 years, 7 months ago (2017-05-09 11:20:20 UTC) #14
Marc Treib
https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/search/thumbnail_source.cc File chrome/browser/search/thumbnail_source.cc (right): https://codereview.chromium.org/2794343002/diff/20001/chrome/browser/search/thumbnail_source.cc#newcode26 chrome/browser/search/thumbnail_source.cc:26: data: "..." On 2017/05/09 11:08:24, Ramin Halavati wrote: > ...
3 years, 7 months ago (2017-05-09 11:38:35 UTC) #15
Ramin Halavati
All comments addressed. I moved the annotations based on my understanding of the new locations, ...
3 years, 7 months ago (2017-05-09 13:16:47 UTC) #17
sfiera
LGTM for ntp_tiles with one change Thanks, this location looks much better. https://codereview.chromium.org/2794343002/diff/80001/components/ntp_tiles/icon_cacher_impl.cc File components/ntp_tiles/icon_cacher_impl.cc ...
3 years, 7 months ago (2017-05-09 13:25:55 UTC) #18
Marc Treib
https://codereview.chromium.org/2794343002/diff/80001/chrome/browser/search/thumbnail_source.cc File chrome/browser/search/thumbnail_source.cc (right): https://codereview.chromium.org/2794343002/diff/80001/chrome/browser/search/thumbnail_source.cc#newcode76 chrome/browser/search/thumbnail_source.cc:76: chrome_policy { nit: Misaligned? (I think SyncDisabled above is ...
3 years, 7 months ago (2017-05-09 13:40:36 UTC) #19
Ramin Halavati
Thank you very much, all comments addressed, please review. https://codereview.chromium.org/2794343002/diff/80001/chrome/browser/search/thumbnail_source.cc File chrome/browser/search/thumbnail_source.cc (right): https://codereview.chromium.org/2794343002/diff/80001/chrome/browser/search/thumbnail_source.cc#newcode76 chrome/browser/search/thumbnail_source.cc:76: ...
3 years, 7 months ago (2017-05-09 13:57:50 UTC) #22
Marc Treib
Thanks! c/b/search, components/image_fetcher, components/ntp_snippets, components/suggestions all LGTM. https://codereview.chromium.org/2794343002/diff/140001/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc File components/ntp_snippets/remote/remote_suggestions_provider_impl.cc (right): https://codereview.chromium.org/2794343002/diff/140001/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc#newcode293 components/ntp_snippets/remote/remote_suggestions_provider_impl.cc:293: net::DefineNetworkTrafficAnnotation("remote_suggestions_service", R"( ...
3 years, 7 months ago (2017-05-09 14:08:19 UTC) #23
pkotwicz
components/favicon LGTM
3 years, 7 months ago (2017-05-10 04:36:58 UTC) #24
Ramin Halavati
Thank you very much, comment addressed. pkotwicz@: Thank you but I also need you to ...
3 years, 7 months ago (2017-05-10 05:41:02 UTC) #25
Ramin Halavati
I have added a few Android and iOS files for compatibility issues. As we don't ...
3 years, 7 months ago (2017-05-10 10:44:29 UTC) #55
Bernhard Bauer
android LGTM
3 years, 7 months ago (2017-05-10 10:56:08 UTC) #56
gambard
ios_image_data_fetcher_wrapper.mm lgtm
3 years, 7 months ago (2017-05-10 11:03:10 UTC) #57
pkotwicz
https://codereview.chromium.org/2794343002/diff/250001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2794343002/diff/250001/components/favicon/core/large_icon_service.cc#newcode343 components/favicon/core/large_icon_service.cc:343: net::DefineNetworkTrafficAnnotation("...", R"( favicon_component https://codereview.chromium.org/2794343002/diff/250001/components/favicon/core/large_icon_service.cc#newcode345 components/favicon/core/large_icon_service.cc:345: sender: "..." Favicon component ...
3 years, 7 months ago (2017-05-12 17:10:31 UTC) #58
pkotwicz
https://codereview.chromium.org/2794343002/diff/250001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2794343002/diff/250001/components/favicon/core/large_icon_service.cc#newcode343 components/favicon/core/large_icon_service.cc:343: net::DefineNetworkTrafficAnnotation("...", R"( favicon_component https://codereview.chromium.org/2794343002/diff/250001/components/favicon/core/large_icon_service.cc#newcode345 components/favicon/core/large_icon_service.cc:345: sender: "..." Favicon component ...
3 years, 7 months ago (2017-05-12 17:10:31 UTC) #59
Ramin Halavati
Peter, Thank you very much, Favicon annotation updated, please review. https://codereview.chromium.org/2794343002/diff/250001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2794343002/diff/250001/components/favicon/core/large_icon_service.cc#newcode343 ...
3 years, 7 months ago (2017-05-13 08:51:29 UTC) #60
pkotwicz
components/favicon/ LGTM
3 years, 7 months ago (2017-05-15 14:14:15 UTC) #61
Ramin Halavati
Thank you Peter. Martin, Any comments?
3 years, 7 months ago (2017-05-16 05:04:43 UTC) #63
msramek
https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc#newcode347 components/favicon/core/large_icon_service.cc:347: "Sends a request to a Google server to retrieve ...
3 years, 7 months ago (2017-05-18 11:25:18 UTC) #64
Ramin Halavati
On 2017/05/18 11:25:18, msramek wrote: > https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc > File components/favicon/core/large_icon_service.cc (right): > > https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc#newcode347 > ...
3 years, 7 months ago (2017-05-18 11:32:13 UTC) #65
pkotwicz
https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc#newcode347 components/favicon/core/large_icon_service.cc:347: "Sends a request to a Google server to retrieve ...
3 years, 7 months ago (2017-05-18 15:47:44 UTC) #66
msramek
https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc#newcode347 components/favicon/core/large_icon_service.cc:347: "Sends a request to a Google server to retrieve ...
3 years, 7 months ago (2017-05-18 16:02:16 UTC) #67
pkotwicz
There is this warning in the comment in LargeIconService::GetLargeIconOrFallbackStyleFromGoogleServerSkippingLocalCache() // WARNING: This function will share ...
3 years, 7 months ago (2017-05-18 16:20:04 UTC) #68
pkotwicz
I have added jkrcal@ as a reviewer who is familiar about the callers of GetLargeIconOrFallbackStyleFromGoogleServerSkippingLocalCache() ...
3 years, 7 months ago (2017-05-18 16:21:47 UTC) #73
achuithb
chromeos lgtm
3 years, 7 months ago (2017-05-18 21:28:18 UTC) #74
achuithb
https://codereview.chromium.org/2794343002/diff/270001/chrome/browser/chromeos/hats/hats_notification_controller.cc File chrome/browser/chromeos/hats/hats_notification_controller.cc (right): https://codereview.chromium.org/2794343002/diff/270001/chrome/browser/chromeos/hats/hats_notification_controller.cc#newcode239 chrome/browser/chromeos/hats/hats_notification_controller.cc:239: NO_TRAFFIC_ANNOTATION_YET); Are we going to change this to something ...
3 years, 7 months ago (2017-05-18 21:29:26 UTC) #75
jkrcal
large_icon_service* lgtm Thanks! https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2794343002/diff/270001/components/favicon/core/large_icon_service.cc#newcode347 components/favicon/core/large_icon_service.cc:347: "Sends a request to a Google ...
3 years, 7 months ago (2017-05-19 06:18:21 UTC) #76
Ramin Halavati
Thank you very much, comments addressed. Marc, Could you please check the newly added file: ...
3 years, 7 months ago (2017-05-19 06:37:37 UTC) #77
Marc Treib
https://codereview.chromium.org/2794343002/diff/310001/components/doodle/doodle_service.cc File components/doodle/doodle_service.cc (right): https://codereview.chromium.org/2794343002/diff/310001/components/doodle/doodle_service.cc#newcode111 components/doodle/doodle_service.cc:111: net::DefineNetworkTrafficAnnotation("...", R"( doodle_service https://codereview.chromium.org/2794343002/diff/310001/components/doodle/doodle_service.cc#newcode113 components/doodle/doodle_service.cc:113: sender: "..." Doodle service ...
3 years, 7 months ago (2017-05-19 08:29:12 UTC) #84
Ramin Halavati
Thank you very much Marc. Please review. https://codereview.chromium.org/2794343002/diff/310001/components/doodle/doodle_service.cc File components/doodle/doodle_service.cc (right): https://codereview.chromium.org/2794343002/diff/310001/components/doodle/doodle_service.cc#newcode111 components/doodle/doodle_service.cc:111: net::DefineNetworkTrafficAnnotation("...", R"( ...
3 years, 7 months ago (2017-05-19 08:35:18 UTC) #85
Marc Treib
components/doodle LGTM
3 years, 7 months ago (2017-05-19 08:36:45 UTC) #86
msramek
Thanks a lot for the clarification! LGTM % few more comments. https://codereview.chromium.org/2794343002/diff/330001/components/doodle/doodle_service.cc File components/doodle/doodle_service.cc (right): ...
3 years, 7 months ago (2017-05-19 08:47:39 UTC) #87
Ramin Halavati
Thank you very much Martin, comment addressed. Marc, Please review the change in: components/doodle/doodle_service.cc https://codereview.chromium.org/2794343002/diff/330001/components/doodle/doodle_service.cc ...
3 years, 7 months ago (2017-05-19 09:03:38 UTC) #88
Marc Treib
doodle_service.cc still lgtm https://codereview.chromium.org/2794343002/diff/330001/components/doodle/doodle_service.cc File components/doodle/doodle_service.cc (right): https://codereview.chromium.org/2794343002/diff/330001/components/doodle/doodle_service.cc#newcode127 components/doodle/doodle_service.cc:127: "Not implemented, considered not useful as ...
3 years, 7 months ago (2017-05-19 09:19:24 UTC) #91
Ramin Halavati
On 2017/05/19 09:19:24, Marc Treib wrote: > doodle_service.cc still lgtm > > https://codereview.chromium.org/2794343002/diff/330001/components/doodle/doodle_service.cc > File ...
3 years, 7 months ago (2017-05-19 09:25:33 UTC) #92
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/2794343002/350001
3 years, 7 months ago (2017-05-19 09:26:20 UTC) #96
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 7 months ago (2017-05-19 11:35:23 UTC) #99
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/2794343002/350001
3 years, 7 months ago (2017-05-19 14:47:32 UTC) #101
pkotwicz
For LargeIconService I think that "perhaps we should split annotation so that the description is ...
3 years, 7 months ago (2017-05-19 14:51:15 UTC) #102
commit-bot: I haz the power
Committed patchset #12 (id:350001) as https://chromium.googlesource.com/chromium/src/+/6072a6b7d7d0992e45f8cc64cc62d2e8b766786c
3 years, 7 months ago (2017-05-19 14:52:31 UTC) #105
Ramin Halavati
3 years, 7 months ago (2017-05-19 14:53:14 UTC) #106
Message was sent while issue was closed.
On 2017/05/19 14:51:15, pkotwicz wrote:
> For LargeIconService I think that
> "perhaps we should split annotation so that the description is defined on
upper
> layers. This
> is not supported right now, but will be soon."
> makes sense

OK Peter, I will land this CL, then create a new one and modify just this file.

Powered by Google App Engine
This is Rietveld 408576698