| Index: net/base/transport_security_state.cc
|
| diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc
|
| index 32b7566c210ea614a2cecaeee6c4a0e3f746078b..e5acfb365c6399156c56399389b88003abbbba69 100644
|
| --- a/net/base/transport_security_state.cc
|
| +++ b/net/base/transport_security_state.cc
|
| @@ -100,6 +100,23 @@ bool TransportSecurityState::IsEnabledForHost(DomainState* result,
|
| return false;
|
| }
|
|
|
| +void TransportSecurityState::DeleteSince(const base::Time& time) {
|
| + bool dirtied = false;
|
| +
|
| + std::map<std::string, DomainState>::iterator i = enabled_hosts_.begin();
|
| + while (i != enabled_hosts_.end()) {
|
| + if (i->second.created >= time) {
|
| + dirtied = true;
|
| + enabled_hosts_.erase(i++);
|
| + } else {
|
| + i++;
|
| + }
|
| + }
|
| +
|
| + if (dirtied)
|
| + DirtyNotify();
|
| +}
|
| +
|
| // MaxAgeToInt converts a string representation of a number of seconds into a
|
| // int. We use strtol in order to handle overflow correctly. The string may
|
| // contain an arbitary number which we should truncate correctly rather than
|
| @@ -350,23 +367,6 @@ bool TransportSecurityState::Deserialise(const std::string& input,
|
| return true;
|
| }
|
|
|
| -void TransportSecurityState::DeleteSince(const base::Time& time) {
|
| - bool dirtied = false;
|
| -
|
| - std::map<std::string, DomainState>::iterator i = enabled_hosts_.begin();
|
| - while (i != enabled_hosts_.end()) {
|
| - if (i->second.created >= time) {
|
| - dirtied = true;
|
| - enabled_hosts_.erase(i++);
|
| - } else {
|
| - i++;
|
| - }
|
| - }
|
| -
|
| - if (dirtied)
|
| - DirtyNotify();
|
| -}
|
| -
|
| TransportSecurityState::~TransportSecurityState() {
|
| }
|
|
|
|
|