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

Issue 2343073002: Only attach GAIA ID to Mirror header/cookie for whitelisted domain. (Closed)

Created:
4 years, 3 months ago by bzanotti
Modified:
4 years, 3 months ago
CC:
chromium-reviews, gogerald1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only attach GAIA ID to Mirror header/cookie for whitelisted domain. The GAIA ID is only necessary on Drive and should only be set there. As the Mirror cookie doesn't have the granularity to only set it on Drive, it is set on https://google.com instead. BUG=647260 Committed: https://crrev.com/09509af98dc69e7c39c8729a5a023966577eaa0f Cr-Commit-Position: refs/heads/master@{#419487}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Only set GAIA Id in Drive for header #

Total comments: 4

Patch Set 3 : Fix typo in comments #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -34 lines) Patch
M components/signin/core/browser/signin_header_helper.cc View 1 2 5 chunks +60 lines, -34 lines 6 comments Download

Messages

Total messages: 20 (7 generated)
bzanotti
Please take a look.
4 years, 3 months ago (2016-09-16 11:30:50 UTC) #2
Roger Tawa OOO till Jul 10th
Please see below. Not sure if I misunderstood the email discussion about this change. https://codereview.chromium.org/2343073002/diff/1/components/signin/core/browser/signin_header_helper.cc ...
4 years, 3 months ago (2016-09-16 14:34:25 UTC) #3
Roger Tawa OOO till Jul 10th
On 2016/09/16 14:34:25, Roger Tawa wrote: > Please see below. Not sure if I misunderstood ...
4 years, 3 months ago (2016-09-16 14:35:11 UTC) #4
Roger Tawa OOO till Jul 10th
On 2016/09/16 14:35:11, Roger Tawa wrote: > On 2016/09/16 14:34:25, Roger Tawa wrote: > > ...
4 years, 3 months ago (2016-09-16 14:38:23 UTC) #5
bzanotti
On 2016/09/16 14:38:23, Roger Tawa wrote: > On 2016/09/16 14:35:11, Roger Tawa wrote: > > ...
4 years, 3 months ago (2016-09-16 15:41:27 UTC) #6
bzanotti
PTAL
4 years, 3 months ago (2016-09-19 11:24:41 UTC) #8
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/2343073002/diff/20001/components/signin/core/browser/signin_header_helper.cc File components/signin/core/browser/signin_header_helper.cc (right): https://codereview.chromium.org/2343073002/diff/20001/components/signin/core/browser/signin_header_helper.cc#newcode55 components/signin/core/browser/signin_header_helper.cc:55: // Cookie requests dont' have the granularity to ...
4 years, 3 months ago (2016-09-19 13:08:54 UTC) #9
bzanotti
https://codereview.chromium.org/2343073002/diff/20001/components/signin/core/browser/signin_header_helper.cc File components/signin/core/browser/signin_header_helper.cc (right): https://codereview.chromium.org/2343073002/diff/20001/components/signin/core/browser/signin_header_helper.cc#newcode55 components/signin/core/browser/signin_header_helper.cc:55: // Cookie requests dont' have the granularity to only ...
4 years, 3 months ago (2016-09-19 16:28:55 UTC) #10
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/2343073002/40001
4 years, 3 months ago (2016-09-19 16:29:09 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-19 17:09:39 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/09509af98dc69e7c39c8729a5a023966577eaa0f Cr-Commit-Position: refs/heads/master@{#419487}
4 years, 3 months ago (2016-09-19 17:11:23 UTC) #17
battre
Hi. Thanks a lot for taking care of this. I have added a couple of ...
4 years, 3 months ago (2016-09-20 09:01:55 UTC) #19
bzanotti
4 years, 3 months ago (2016-09-20 14:49:28 UTC) #20
Message was sent while issue was closed.
Thanks for the review, I've created http://crrev.com/2353923003 to address the
new comments (note: still no unit tests as it seems
content_settings::CookieSettings can't be faked).

https://codereview.chromium.org/2343073002/diff/40001/components/signin/core/...
File components/signin/core/browser/signin_header_helper.cc (right):

https://codereview.chromium.org/2343073002/diff/40001/components/signin/core/...
components/signin/core/browser/signin_header_helper.cc:52: return
IsDriveOrigin(url);
On 2016/09/20 09:01:55, battre wrote:
> Just to be sure: I think you are passing the url here, not the origin. Are you
> sure that all of this works as expected?

That's a good point, fixed in the new CL.

https://codereview.chromium.org/2343073002/diff/40001/components/signin/core/...
components/signin/core/browser/signin_header_helper.cc:61: return url ==
kGoogleDotComURL;
On 2016/09/20 09:01:55, battre wrote:
> I think this would be false for https://www.google.com, right? Is that
intended?

I cheated a little bit here, because I know that the only code using this will
actually use "https://google.com". I have fixed it to actually extract the
domain and check that it is google.com.

https://codereview.chromium.org/2343073002/diff/40001/components/signin/core/...
components/signin/core/browser/signin_header_helper.cc:124: // Only google.com
requires the GAIA ID, don't send it to other domains.
On 2016/09/20 09:01:55, battre wrote:
> I think this is inconsistent with sending it to http://drive.google.com and
> http://docs.google.com as well, right?

Correct, I forgot to update the comment.

Powered by Google App Engine
This is Rietveld 408576698