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

Issue 2888053003: Network traffic annotation added to OAuth2ApiCallFlow and its subclasses. (Closed)

Created:
3 years, 7 months ago by Ramin Halavati
Modified:
3 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, jlklein+watch-tether_chromium.org, tengs+watch-tether_chromium.org, hansberry+watch-tether_chromium.org, jhawkins+watch-tether_chromium.org, chromium-apps-reviews_chromium.org, lesliewatkins+watch-tether_chromium.org, khorimoto+watch-tether_chromium.org, msramek, battre, Kyle Horimoto, Tim Song
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Network traffic annotation added to OAuth2ApiCallFlow and its subclasses. Network traffic annotation is added to network requests of: chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc components/cryptauth/cryptauth_api_call_flow.cc components/signin/core/browser/refresh_token_annotation_request.cc google_apis/gaia/oauth2_api_call_flow.h google_apis/gaia/oauth2_api_call_flow.cc BUG=656607 Review-Url: https://codereview.chromium.org/2888053003 Cr-Commit-Position: refs/heads/master@{#484474} Committed: https://chromium.googlesource.com/chromium/src/+/13592b1a361d8faad62b9789fed6725afa91f008

Patch Set 1 #

Total comments: 20

Patch Set 2 : Annotation moved to virtual function. #

Patch Set 3 : Merged. #

Patch Set 4 : cryptauth_client_impl_unittest updated. #

Patch Set 5 : cryptauth_api_call_flow_unittest updated. #

Patch Set 6 : Merge branch 'updating_nta' into an_oauth2_api_call_flow #

Total comments: 6

Patch Set 7 : Comments addressed. #

Total comments: 73

Patch Set 8 : Annotations updated. #

Total comments: 36

Patch Set 9 : Annotation updated. #

Patch Set 10 : Annotation updated. #

Patch Set 11 : User authentication key added to data fields. #

Total comments: 17

Patch Set 12 : nits #

Patch Set 13 : Annotations updated. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -45 lines) Patch
M components/cryptauth/cryptauth_api_call_flow.h View 1 3 chunks +13 lines, -0 lines 0 comments Download
M components/cryptauth/cryptauth_api_call_flow.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M components/cryptauth/cryptauth_api_call_flow_unittest.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/cryptauth/cryptauth_client.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -2 lines 0 comments Download
M components/cryptauth/cryptauth_client_impl.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -6 lines 0 comments Download
M components/cryptauth/cryptauth_client_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +118 lines, -10 lines 0 comments Download
M components/cryptauth/cryptauth_client_impl_unittest.cc View 1 2 3 4 5 6 7 12 chunks +25 lines, -13 lines 0 comments Download
M components/cryptauth/cryptauth_device_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +31 lines, -3 lines 0 comments Download
M components/cryptauth/cryptauth_device_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M components/cryptauth/mock_cryptauth_client.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -4 lines 0 comments Download
M components/proximity_auth/webui/reachable_phone_flow.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +28 lines, -3 lines 0 comments Download
M components/signin/core/browser/refresh_token_annotation_request.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/signin/core/browser/refresh_token_annotation_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +32 lines, -0 lines 0 comments Download
M google_apis/gaia/oauth2_api_call_flow.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M google_apis/gaia/oauth2_api_call_flow.cc View 1 2 3 4 5 6 1 chunk +8 lines, -2 lines 0 comments Download
M google_apis/gaia/oauth2_api_call_flow_unittest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M google_apis/gaia/oauth2_mint_token_flow.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M google_apis/gaia/oauth2_mint_token_flow.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 75 (37 generated)
Ramin Halavati
tengs@: Please review cryptauth_api_call_flow.cc. courage@: Please review identity_get_auth_token_function.cc rogerta@: Please review refresh_token_annotation_request.cc and google_apis/* We ...
3 years, 7 months ago (2017-05-17 05:53:08 UTC) #2
Tim Song
https://codereview.chromium.org/2888053003/diff/1/components/cryptauth/cryptauth_api_call_flow.cc File components/cryptauth/cryptauth_api_call_flow.cc (right): https://codereview.chromium.org/2888053003/diff/1/components/cryptauth/cryptauth_api_call_flow.cc#newcode42 components/cryptauth/cryptauth_api_call_flow.cc:42: description: "..." This class is a generic wrapper for ...
3 years, 7 months ago (2017-05-17 19:10:37 UTC) #3
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/2888053003/diff/1/google_apis/gaia/oauth2_api_call_flow.h File google_apis/gaia/oauth2_api_call_flow.h (right): https://codereview.chromium.org/2888053003/diff/1/google_apis/gaia/oauth2_api_call_flow.h#newcode36 google_apis/gaia/oauth2_api_call_flow.h:36: const net::NetworkTrafficAnnotationTag& traffic_annotation); Curious why adding an arg to ...
3 years, 7 months ago (2017-05-17 19:26:13 UTC) #4
Michael Courage
https://codereview.chromium.org/2888053003/diff/1/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc File chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc (right): https://codereview.chromium.org/2888053003/diff/1/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc#newcode584 chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc:584: sender: "..." Chrome Identity API maybe? Really the sender ...
3 years, 7 months ago (2017-05-17 22:59:16 UTC) #5
Ramin Halavati
On 2017/05/17 22:59:16, Michael Courage wrote: > https://codereview.chromium.org/2888053003/diff/1/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc > File chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc > (right): > > ...
3 years, 7 months ago (2017-05-18 07:43:45 UTC) #6
Roger Tawa OOO till Jul 10th
On 2017/05/18 07:43:45, Ramin Halavati wrote: > On 2017/05/17 22:59:16, Michael Courage wrote: > > ...
3 years, 7 months ago (2017-05-18 14:15:21 UTC) #7
Ramin Halavati
On 2017/05/18 14:15:21, Roger Tawa wrote: > On 2017/05/18 07:43:45, Ramin Halavati wrote: > > ...
3 years, 7 months ago (2017-05-18 15:16:15 UTC) #8
Ramin Halavati
Annotations moved to a virtual function. I also used newer helper functions for annotations (not ...
3 years, 7 months ago (2017-05-24 13:04:41 UTC) #9
Roger Tawa OOO till Jul 10th
lgtm Thanks Ramin for your patience and addressing my concerns.
3 years, 7 months ago (2017-05-24 18:01:06 UTC) #19
Ramin Halavati
On 2017/05/24 18:01:06, Roger Tawa wrote: > lgtm > > Thanks Ramin for your patience ...
3 years, 7 months ago (2017-05-25 04:38:30 UTC) #20
Roger Tawa OOO till Jul 10th
Hi Ramin, Filled in what I know. I'm not familiar with crypto code so you'll ...
3 years, 7 months ago (2017-05-26 13:46:11 UTC) #33
Ramin Halavati
Thank you Roger, comments addressed, please verify. Kyle, We are annotating all network requests in ...
3 years, 6 months ago (2017-05-29 05:30:52 UTC) #35
Roger Tawa OOO till Jul 10th
lgtm
3 years, 6 months ago (2017-05-29 14:09:18 UTC) #36
Ramin Halavati
On 2017/05/29 14:09:18, Roger Tawa wrote: > lgtm Roger, Kyle, Tim is OOO for around ...
3 years, 6 months ago (2017-06-09 07:14:25 UTC) #37
Kyle Horimoto
sacomoto@, would you mind reviewing this please? Thanks!
3 years, 6 months ago (2017-06-09 16:46:51 UTC) #39
sacomoto
https://codereview.chromium.org/2888053003/diff/140001/components/cryptauth/cryptauth_client_impl.cc File components/cryptauth/cryptauth_client_impl.cc (right): https://codereview.chromium.org/2888053003/diff/140001/components/cryptauth/cryptauth_client_impl.cc#newcode63 components/cryptauth/cryptauth_client_impl.cc:63: CryptAuthClientImpl::~CryptAuthClientImpl() { For all requests: destination: GOOGLE_OWNED_SERVICE https://codereview.chromium.org/2888053003/diff/140001/components/cryptauth/cryptauth_client_impl.cc#newcode66 components/cryptauth/cryptauth_client_impl.cc:66: ...
3 years, 6 months ago (2017-06-15 06:13:23 UTC) #40
Ramin Halavati
Thank you Gustavo, all comments addressed, please review. I moved two annotations to caller functions ...
3 years, 6 months ago (2017-06-16 09:48:18 UTC) #45
sacomoto
https://codereview.chromium.org/2888053003/diff/140001/components/cryptauth/cryptauth_client_impl.cc File components/cryptauth/cryptauth_client_impl.cc (right): https://codereview.chromium.org/2888053003/diff/140001/components/cryptauth/cryptauth_client_impl.cc#newcode194 components/cryptauth/cryptauth_client_impl.cc:194: chrome_policy { On 2017/06/16 09:48:17, Ramin Halavati wrote: > ...
3 years, 6 months ago (2017-06-19 18:25:39 UTC) #46
Ramin Halavati
Thank you Gustavo, all comments addressed, please review. https://codereview.chromium.org/2888053003/diff/140001/components/cryptauth/cryptauth_client_impl.cc File components/cryptauth/cryptauth_client_impl.cc (right): https://codereview.chromium.org/2888053003/diff/140001/components/cryptauth/cryptauth_client_impl.cc#newcode194 components/cryptauth/cryptauth_client_impl.cc:194: chrome_policy ...
3 years, 6 months ago (2017-06-20 05:35:34 UTC) #47
sacomoto
https://codereview.chromium.org/2888053003/diff/160001/components/cryptauth/cryptauth_device_manager.cc File components/cryptauth/cryptauth_device_manager.cc (right): https://codereview.chromium.org/2888053003/diff/160001/components/cryptauth/cryptauth_device_manager.cc#newcode510 components/cryptauth/cryptauth_device_manager.cc:510: void CryptAuthDeviceManager::OnSyncRequested( On 2017/06/20 05:35:34, Ramin Halavati wrote: > ...
3 years, 6 months ago (2017-06-20 09:48:18 UTC) #48
Ramin Halavati
Thank you, comments addressed, please review. https://codereview.chromium.org/2888053003/diff/160001/components/cryptauth/cryptauth_device_manager.cc File components/cryptauth/cryptauth_device_manager.cc (right): https://codereview.chromium.org/2888053003/diff/160001/components/cryptauth/cryptauth_device_manager.cc#newcode510 components/cryptauth/cryptauth_device_manager.cc:510: void CryptAuthDeviceManager::OnSyncRequested( On ...
3 years, 6 months ago (2017-06-20 10:46:16 UTC) #49
sacomoto
lgtm
3 years, 6 months ago (2017-06-20 11:34:12 UTC) #50
Ramin Halavati
On 2017/06/20 11:34:12, sacomoto wrote: > lgtm Thank you. Just a missed comment: Should I ...
3 years, 6 months ago (2017-06-20 11:36:29 UTC) #51
sacomoto1
On 2017/06/20 11:36:29, Ramin Halavati wrote: > On 2017/06/20 11:34:12, sacomoto wrote: > > lgtm ...
3 years, 6 months ago (2017-06-20 12:35:11 UTC) #52
Ramin Halavati
Thank you Gustavo. Martin, Do you have any comments?
3 years, 6 months ago (2017-06-20 12:51:23 UTC) #54
msramek
https://codereview.chromium.org/2888053003/diff/220001/components/cryptauth/cryptauth_client_impl.cc File components/cryptauth/cryptauth_client_impl.cc (right): https://codereview.chromium.org/2888053003/diff/220001/components/cryptauth/cryptauth_client_impl.cc#newcode96 components/cryptauth/cryptauth_client_impl.cc:96: "only be send if the user explicitly tries to ...
3 years, 5 months ago (2017-06-28 08:40:55 UTC) #55
Ramin Halavati
Thanks Martin, Gustavo, Could you please answer Martin's questions on the reasons behind regular calls ...
3 years, 5 months ago (2017-06-28 09:21:29 UTC) #56
sacomoto
https://codereview.chromium.org/2888053003/diff/220001/components/cryptauth/cryptauth_client_impl.cc File components/cryptauth/cryptauth_client_impl.cc (right): https://codereview.chromium.org/2888053003/diff/220001/components/cryptauth/cryptauth_client_impl.cc#newcode157 components/cryptauth/cryptauth_client_impl.cc:157: description: "Starts the CryptAuth registration flow." On 2017/06/28 08:40:55, ...
3 years, 5 months ago (2017-06-30 10:09:54 UTC) #57
Ramin Halavati
Thank you Gustavo. Martin, Annotations updated, please review. https://codereview.chromium.org/2888053003/diff/220001/components/cryptauth/cryptauth_client_impl.cc File components/cryptauth/cryptauth_client_impl.cc (right): https://codereview.chromium.org/2888053003/diff/220001/components/cryptauth/cryptauth_client_impl.cc#newcode157 components/cryptauth/cryptauth_client_impl.cc:157: description: ...
3 years, 5 months ago (2017-06-30 11:51:36 UTC) #58
msramek
LGTM, thanks for the clarifications!
3 years, 5 months ago (2017-07-03 13:54:29 UTC) #59
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/2888053003/260001
3 years, 5 months ago (2017-07-03 13:55:36 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/479599)
3 years, 5 months ago (2017-07-03 14:03:09 UTC) #64
Ramin Halavati
Thank you Martin. Kyle, Could you please give owner's approval on components/cryptauth/* and components/proximity_auth/*
3 years, 5 months ago (2017-07-04 04:52:13 UTC) #65
Kyle Horimoto
lgtm
3 years, 5 months ago (2017-07-05 17:55:35 UTC) #66
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/2888053003/260001
3 years, 5 months ago (2017-07-05 18:25:26 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/251563)
3 years, 5 months ago (2017-07-05 18:50:19 UTC) #70
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/2888053003/260001
3 years, 5 months ago (2017-07-06 05:08:56 UTC) #72
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 06:00:45 UTC) #75
Message was sent while issue was closed.
Committed patchset #13 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/13592b1a361d8faad62b9789fed6...

Powered by Google App Engine
This is Rietveld 408576698