No need to support old style dasher domains.
BUG=137118 TEST=See unit tests, not called in any code yet Review URL: https://chromiumcodereview.appspot.com/11185002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162184 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
google_apis/gaia
@ -64,9 +64,7 @@ bool IsGaiaSignonRealm(const GURL& url) {
|
||||
if (!url.SchemeIsSecure())
|
||||
return false;
|
||||
|
||||
// Also check "https://www.google.com" to support old style dasher logins.
|
||||
return url == GURL(GaiaUrls::GetInstance()->gaia_origin_url()) ||
|
||||
url == GURL("https://www.google.com/");
|
||||
return url == GURL(GaiaUrls::GetInstance()->gaia_origin_url());
|
||||
}
|
||||
|
||||
} // namespace gaia
|
||||
|
@ -88,11 +88,11 @@ TEST(GaiaAuthUtilTest, SanitizeExistingDomain) {
|
||||
TEST(GaiaAuthUtilTest, IsGaiaSignonRealm) {
|
||||
// Only https versions of Gaia URLs should be considered valid.
|
||||
EXPECT_TRUE(IsGaiaSignonRealm(GURL("https://accounts.google.com/")));
|
||||
EXPECT_TRUE(IsGaiaSignonRealm(GURL("https://www.google.com/")));
|
||||
EXPECT_FALSE(IsGaiaSignonRealm(GURL("http://accounts.google.com/")));
|
||||
EXPECT_FALSE(IsGaiaSignonRealm(GURL("http://www.google.com/")));
|
||||
|
||||
// Other Google URLs are not valid.
|
||||
EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://www.google.com/")));
|
||||
EXPECT_FALSE(IsGaiaSignonRealm(GURL("http://www.google.com/")));
|
||||
EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://google.com/")));
|
||||
EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://mail.google.com/")));
|
||||
|
||||
|
Reference in New Issue
Block a user