summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-02 15:09:45 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-02 15:09:45 +0000
commitcf38722ad5bf42e271daf44fba01e6ab0cb1ba47 (patch)
treec6fd7f2135d784f3ff3da9ca43c6d8b32c50f399 /net
parent912b5ea8cf1d5914c807df79ca32d2183f4634dd (diff)
downloadchromium_src-cf38722ad5bf42e271daf44fba01e6ab0cb1ba47.zip
chromium_src-cf38722ad5bf42e271daf44fba01e6ab0cb1ba47.tar.gz
chromium_src-cf38722ad5bf42e271daf44fba01e6ab0cb1ba47.tar.bz2
net: add romab.com to HSTS preloaded list.
BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83720 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.cc4
2 files changed, 5 insertions, 0 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc
index db55374..93f2e06 100644
--- a/net/base/transport_security_state.cc
+++ b/net/base/transport_security_state.cc
@@ -639,6 +639,7 @@ bool TransportSecurityState::IsPreloadedSTS(
{14, true, "\010keyerror\003com", true, 0 },
{13, false, "\010entropia\002de", true, 0 },
{17, false, "\003www\010entropia\002de", true, 0 },
+ {11, true, "\005romab\003com", true, 0 },
#if defined(OS_CHROMEOS)
{13, false, "\007twitter\003com", true, 0 },
{17, false, "\003www\007twitter\003com", true, 0 },
diff --git a/net/base/transport_security_state_unittest.cc b/net/base/transport_security_state_unittest.cc
index 588759a..e38e327 100644
--- a/net/base/transport_security_state_unittest.cc
+++ b/net/base/transport_security_state_unittest.cc
@@ -545,6 +545,10 @@ TEST_F(TransportSecurityStateTest, Preloaded) {
EXPECT_FALSE(state->IsEnabledForHost(&domain_state,
"m.googlemail.com",
false));
+
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "romab.com", false));
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.romab.com", false));
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "foo.romab.com", false));
}
TEST_F(TransportSecurityStateTest, LongNames) {