diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-21 13:43:17 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-21 13:43:17 +0000 |
commit | abaeacb2d66c49a94775561b16295dea0627152e (patch) | |
tree | 59324c013a03fc2a8daf2d4880df52b79e435e8f /net | |
parent | 0063e853c08e6dd7ff382551dfe31083b73d62ec (diff) | |
download | chromium_src-abaeacb2d66c49a94775561b16295dea0627152e.zip chromium_src-abaeacb2d66c49a94775561b16295dea0627152e.tar.gz chromium_src-abaeacb2d66c49a94775561b16295dea0627152e.tar.bz2 |
net: add keyerror.com to HSTS preloaded list.
BUG=none
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/transport_security_state.cc | 1 | ||||
-rw-r--r-- | net/base/transport_security_state_unittest.cc | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc index 4f91091..6ee85d4 100644 --- a/net/base/transport_security_state.cc +++ b/net/base/transport_security_state.cc @@ -477,6 +477,7 @@ bool TransportSecurityState::IsPreloadedSTS( {20, true, "\006market\007android\003com"}, {14, false, "\010lastpass\003com"}, {18, false, "\003www\010lastpass\003com"}, + {14, true, "\010keyerror\003com"}, }; 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 f703ab5..6ec34ad 100644 --- a/net/base/transport_security_state_unittest.cc +++ b/net/base/transport_security_state_unittest.cc @@ -410,6 +410,9 @@ TEST_F(TransportSecurityStateTest, Preloaded) { EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "lastpass.com")); EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.lastpass.com")); EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "blog.lastpass.com")); + + EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "keyerror.com")); + EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.keyerror.com")); } TEST_F(TransportSecurityStateTest, LongNames) { |