summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-22 15:51:13 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-22 15:51:13 +0000
commite259d488cd6b93b27831289bd6a3bc0b40758c98 (patch)
tree63e141abd231a2ada66ba777c3857854aa7ac134 /net
parent01fbb66d84a5c0aefc225a2066bdce31b76b0fd3 (diff)
downloadchromium_src-e259d488cd6b93b27831289bd6a3bc0b40758c98.zip
chromium_src-e259d488cd6b93b27831289bd6a3bc0b40758c98.tar.gz
chromium_src-e259d488cd6b93b27831289bd6a3bc0b40758c98.tar.bz2
net: add lists.mayfirst.org to HSTS preloaded.
Requested by: Jamie McClelland BUG=none TEST=net_unittests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/transport_security_state.cc1
-rw-r--r--net/base/transport_security_state_unittest.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc
index 345aa69..258d59f 100644
--- a/net/base/transport_security_state.cc
+++ b/net/base/transport_security_state.cc
@@ -434,6 +434,7 @@ bool TransportSecurityState::IsPreloadedSTS(
{22, false, "\007members\010mayfirst\003org"},
{22, false, "\007support\010mayfirst\003org"},
{17, false, "\002id\010mayfirst\003org"},
+ {20, false, "\005lists\010mayfirst\003org"},
};
static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS);
diff --git a/net/base/transport_security_state_unittest.cc b/net/base/transport_security_state_unittest.cc
index af4d422..3364bf1 100644
--- a/net/base/transport_security_state_unittest.cc
+++ b/net/base/transport_security_state_unittest.cc
@@ -364,6 +364,7 @@ TEST_F(TransportSecurityStateTest, Preloaded) {
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "members.mayfirst.org"));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "support.mayfirst.org"));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "id.mayfirst.org"));
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "lists.mayfirst.org"));
EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "www.mayfirst.org"));
}