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

Issue 2558913003: Restrict transmission of external exp ids to signed in users. (Closed)

Created:
4 years ago by Alexei Svitkine (slow)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ntp-dev+reviews_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, Randy Smith (Not in Mondays), jdonnelly+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, mathp+autofillwatch_chromium.org, asvitkine+watch_chromium.org, loading-reviews_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restrict transmission of external exp ids to signed in users. Since external experiment ids are not based on Chrome's low entropy source, they do not have the same guarantees about not identifying a user as Chrome's variations. As such, we should only transmit them for signed in users, whose identity is already known by Google so there's no risk of identifying them through these headers. Note: The signed-in state checking in this CL is only done for web content area requests and not other internal requests, like to the suggestion service, where it treats the state as "not signed in". This is fine to do because variations service ids are still sent, which is what the other call sites are interested in. BUG=672532 TBR=mpearson@chromium.org,mattm@chromium.org,donnd@chromium.org,afakhry@chromium.org Committed: https://crrev.com/9ed7b5611a61505c3dba734fe55b92211df3c2f6 Cr-Commit-Position: refs/heads/master@{#437959}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix. #

Patch Set 3 : Fix windows compile. #

Patch Set 4 : google_services_account_id is not initialized in incognito #

Total comments: 2

Patch Set 5 : Add comments to callsites and API headers. #

Total comments: 4

Patch Set 6 : Address nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -120 lines) Patch
M chrome/browser/android/contextualsearch/contextual_search_delegate.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/android/metrics/uma_session_stats.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/srt_fetcher_win.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_download_manager.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M components/feedback/feedback_uploader_chrome.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/omnibox/browser/search_provider.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M components/omnibox/browser/zero_suggest_provider.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/suggestions/suggestions_service.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/variations/net/variations_http_headers.h View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download
M components/variations/net/variations_http_headers.cc View 2 chunks +3 lines, -1 line 0 comments Download
M components/variations/variations_associated_data.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/variations/variations_associated_data.cc View 1 chunk +15 lines, -7 lines 0 comments Download
M components/variations/variations_http_header_provider.h View 1 2 3 4 4 chunks +27 lines, -13 lines 0 comments Download
M components/variations/variations_http_header_provider.cc View 9 chunks +95 lines, -71 lines 0 comments Download
M components/variations/variations_http_header_provider_unittest.cc View 4 chunks +33 lines, -12 lines 0 comments Download

Messages

Total messages: 68 (43 generated)
Alexei Svitkine (slow)
4 years ago (2016-12-08 17:35:11 UTC) #13
Mathieu
https://codereview.chromium.org/2558913003/diff/40001/components/autofill/core/browser/autofill_download_manager.cc File components/autofill/core/browser/autofill_download_manager.cc (right): https://codereview.chromium.org/2558913003/diff/40001/components/autofill/core/browser/autofill_download_manager.cc#newcode250 components/autofill/core/browser/autofill_download_manager.cc:250: variations::AppendVariationHeaders(fetcher->GetOriginalURL(), Could we check whether the user is signed ...
4 years ago (2016-12-08 18:05:00 UTC) #17
Alexei Svitkine (slow)
https://codereview.chromium.org/2558913003/diff/40001/components/autofill/core/browser/autofill_download_manager.cc File components/autofill/core/browser/autofill_download_manager.cc (right): https://codereview.chromium.org/2558913003/diff/40001/components/autofill/core/browser/autofill_download_manager.cc#newcode250 components/autofill/core/browser/autofill_download_manager.cc:250: variations::AppendVariationHeaders(fetcher->GetOriginalURL(), On 2016/12/08 18:04:59, Mathieu Perreault wrote: > Could ...
4 years ago (2016-12-08 20:27:34 UTC) #18
Mathieu
lgtm with comment https://codereview.chromium.org/2558913003/diff/40001/components/autofill/core/browser/autofill_download_manager.cc File components/autofill/core/browser/autofill_download_manager.cc (right): https://codereview.chromium.org/2558913003/diff/40001/components/autofill/core/browser/autofill_download_manager.cc#newcode250 components/autofill/core/browser/autofill_download_manager.cc:250: variations::AppendVariationHeaders(fetcher->GetOriginalURL(), On 2016/12/08 20:27:33, Alexei Svitkine ...
4 years ago (2016-12-08 20:37:27 UTC) #21
Marc Treib
https://codereview.chromium.org/2558913003/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2558913003/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode684 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:684: false, // is_signed_in Essentially the same comment that mathp ...
4 years ago (2016-12-09 12:34:32 UTC) #32
Alexei Svitkine (slow)
Done - added comments to all the call sites as well as expanded comments in ...
4 years ago (2016-12-09 15:53:58 UTC) #35
Marc Treib
Thanks! ntp_snippets lgtm
4 years ago (2016-12-09 16:14:21 UTC) #36
Alexei Svitkine (slow)
+mmenke for chrome/browser/loader OWNERS jwd: friendly ping (Planning to TBR other call site owners as ...
4 years ago (2016-12-09 19:38:36 UTC) #40
mmenke
https://codereview.chromium.org/2558913003/diff/120001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/2558913003/diff/120001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc#newcode489 chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc:489: !io_data->google_services_account_id()->GetValue().empty(); I think you just need the last check? ...
4 years ago (2016-12-09 19:47:44 UTC) #41
Alexei Svitkine (slow)
https://codereview.chromium.org/2558913003/diff/120001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/2558913003/diff/120001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc#newcode489 chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc:489: !io_data->google_services_account_id()->GetValue().empty(); On 2016/12/09 19:47:44, mmenke wrote: > I think ...
4 years ago (2016-12-09 20:10:44 UTC) #42
mmenke
On 2016/12/09 20:10:44, Alexei Svitkine (slow) wrote: > https://codereview.chromium.org/2558913003/diff/120001/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc > File chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc (right): > > ...
4 years ago (2016-12-09 21:32:24 UTC) #43
Alexei Svitkine (slow)
jwd: friendly ping We want to get this merged to 56 per discussion with Darin ...
4 years ago (2016-12-12 15:40:33 UTC) #44
jwd
LGTM with nit. https://codereview.chromium.org/2558913003/diff/120001/components/variations/variations_associated_data.h File components/variations/variations_associated_data.h (right): https://codereview.chromium.org/2558913003/diff/120001/components/variations/variations_associated_data.h#newcode61 components/variations/variations_associated_data.h:61: // This collected is used by ...
4 years ago (2016-12-12 16:04:43 UTC) #45
Alexei Svitkine (slow)
Thanks! TBR'ing OWNERS for downstream users of the API that I'm adding a param for. ...
4 years ago (2016-12-12 16:13:19 UTC) #50
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/2558913003/140001
4 years ago (2016-12-12 16:13:59 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/178908)
4 years ago (2016-12-12 16:37:16 UTC) #55
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/2558913003/140001
4 years ago (2016-12-12 22:06:27 UTC) #57
Mark P
components/omnibox/... lgtm But, one minor comment: The changelist says: >>> Note: The signed-in state checking ...
4 years ago (2016-12-12 22:38:42 UTC) #58
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years ago (2016-12-12 23:42:20 UTC) #61
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/9ed7b5611a61505c3dba734fe55b92211df3c2f6 Cr-Commit-Position: refs/heads/master@{#437959}
4 years ago (2016-12-12 23:44:41 UTC) #63
Yuta Kitamura
A revert of this CL (patchset #6 id:140001) has been created in https://codereview.chromium.org/2569973002/ by yutak@chromium.org. ...
4 years ago (2016-12-13 06:05:56 UTC) #64
Yuta Kitamura
On 2016/12/13 06:05:56, Yuta Kitamura wrote: > A revert of this CL (patchset #6 id:140001) ...
4 years ago (2016-12-13 10:30:10 UTC) #65
Alexei Svitkine (slow)
On 2016/12/12 22:38:42, Mark P wrote: > components/omnibox/... lgtm > > But, one minor comment: ...
3 years, 11 months ago (2017-01-11 21:58:55 UTC) #66
Mark P
On 2017/01/11 21:58:55, Alexei Svitkine (slow) wrote: > On 2016/12/12 22:38:42, Mark P wrote: > ...
3 years, 11 months ago (2017-01-11 22:04:20 UTC) #67
afakhry
3 years, 11 months ago (2017-01-11 23:16:45 UTC) #68
Message was sent while issue was closed.
feedback_uploader_chrome.cc lgtm

Powered by Google App Engine
This is Rietveld 408576698