Index: net/quic/quic_session_key.cc |
diff --git a/net/quic/quic_session_key.cc b/net/quic/quic_session_key.cc |
index 8ffd52490a95a484ebccc1f489117c3a45ead7be..385a1dea95b5d6af6c4ec849f8286d4c55d54165 100644 |
--- a/net/quic/quic_session_key.cc |
+++ b/net/quic/quic_session_key.cc |
@@ -11,19 +11,15 @@ |
QuicSessionKey::QuicSessionKey() {} |
QuicSessionKey::QuicSessionKey(const HostPortPair& host_port_pair, |
- bool is_https, |
- PrivacyMode privacy_mode) |
+ bool is_https) |
: host_port_pair_(host_port_pair), |
- is_https_(is_https), |
- privacy_mode_(privacy_mode) {} |
+ is_https_(is_https) {} |
QuicSessionKey::QuicSessionKey(const string& host, |
uint16 port, |
- bool is_https, |
- PrivacyMode privacy_mode) |
+ bool is_https) |
: host_port_pair_(host, port), |
- is_https_(is_https), |
- privacy_mode_(privacy_mode) {} |
+ is_https_(is_https) {} |
QuicSessionKey::~QuicSessionKey() {} |
@@ -31,21 +27,16 @@ |
if (!host_port_pair_.Equals(other.host_port_pair_)) { |
return host_port_pair_ < other.host_port_pair_; |
} |
- if (is_https_ != other.is_https_) { |
- return is_https_ < other.is_https_; |
- } |
- return privacy_mode_ < other.privacy_mode_; |
+ return is_https_ < other.is_https_; |
} |
bool QuicSessionKey::operator==(const QuicSessionKey& other) const { |
return is_https_ == other.is_https_ && |
- privacy_mode_ == other.privacy_mode_ && |
host_port_pair_.Equals(other.host_port_pair_); |
} |
string QuicSessionKey::ToString() const { |
- return (is_https_ ? "https://" : "http://") + host_port_pair_.ToString() + |
- (privacy_mode_ == kPrivacyModeEnabled ? "/private" : ""); |
+ return (is_https_ ? "https://" : "http://") + host_port_pair_.ToString(); |
} |
} // namespace net |