| Index: chrome/browser/signin/chrome_signin_client.cc
|
| diff --git a/chrome/browser/signin/chrome_signin_client.cc b/chrome/browser/signin/chrome_signin_client.cc
|
| index debf8eca4de39a1bea92bde43c12001b0a21a36a..1500c08ed0289160999a731cf5fdb8e419e0ddb9 100644
|
| --- a/chrome/browser/signin/chrome_signin_client.cc
|
| +++ b/chrome/browser/signin/chrome_signin_client.cc
|
| @@ -39,6 +39,12 @@
|
| #include "chrome/browser/first_run/first_run.h"
|
| #endif
|
|
|
| +namespace {
|
| +
|
| +const char kGoogleUrl[] = ".google.com";
|
| +
|
| +} // namespace
|
| +
|
| ChromeSigninClient::ChromeSigninClient(
|
| Profile* profile, SigninErrorController* signin_error_controller)
|
| : profile_(profile),
|
| @@ -62,7 +68,9 @@ bool ChromeSigninClient::SettingsAllowSigninCookies(
|
| CookieSettings* cookie_settings) {
|
| GURL gaia_url = GaiaUrls::GetInstance()->gaia_url();
|
| return cookie_settings &&
|
| - cookie_settings->IsSettingCookieAllowed(gaia_url, gaia_url);
|
| + cookie_settings->IsSettingCookieAllowed(gaia_url, gaia_url) &&
|
| + cookie_settings->IsSettingCookieAllowed(GURL(kGoogleUrl),
|
| + GURL(kGoogleUrl));
|
| }
|
|
|
| PrefService* ChromeSigninClient::GetPrefs() { return profile_->GetPrefs(); }
|
|
|