Commit 3e9b4f35 authored by Nohemi Fernandez's avatar Nohemi Fernandez Committed by Commit Bot

[iOS] Trigger GAIA restoration logic for all Google associated domains.

Ensure that all Google domains (including YouTube) will trigger the
logic to check for GAIA cookies attached to google.com. This will enable
users to automatically sign-in when Gaia cookies are removed.

Bug: 1149902
Change-Id: I8e9b2c06d2c4d49c5b86cf361240315664cb31ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2545506Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Nohemi Fernandez <fernandex@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828766}
parent 4f47deb7
...@@ -159,12 +159,10 @@ void AccountConsistencyHandler::ShouldAllowResponse( ...@@ -159,12 +159,10 @@ void AccountConsistencyHandler::ShouldAllowResponse(
{url, GURL(kGoogleUrl)}); {url, GURL(kGoogleUrl)});
} }
// Chrome monitors GAIA cookies when navigating to a google.com domain to // Chrome monitors GAIA cookies when navigating to Google associated domains
// ensure that signed-in users remain signed-in to their Google services on // to ensure that signed-in users remain signed-in to their Google services on
// the web. This includes redirects to accounts.google.com. // the web. This includes redirects to accounts.google.com.
if (google_util::IsGoogleDomainUrl( if (google_util::IsGoogleAssociatedDomainUrl(url)) {
url, google_util::ALLOW_SUBDOMAIN,
google_util::DISALLOW_NON_STANDARD_PORTS)) {
// TODO(crbug.com/1131027): Disable GAIA cookie restore on Google URLs that // TODO(crbug.com/1131027): Disable GAIA cookie restore on Google URLs that
// may display cookie consent in the content area that conflict with the // may display cookie consent in the content area that conflict with the
// sign-in notification. This will be removed once we perform cookie // sign-in notification. This will be removed once we perform cookie
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment