Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: net/quic/quic_stream_factory.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback eroman Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_stream_factory.cc
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
index 18061d53b03492cfc18e1a85b702340ef7d4cc05..3b6af2368770a8063911ff7d4a9780d99dda6fc0 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -685,7 +685,7 @@ void QuicStreamFactory::set_require_confirmation(bool require_confirmation) {
require_confirmation_ = require_confirmation;
if (!(local_address_ == IPEndPoint())) {
http_server_properties_->SetSupportsQuic(!require_confirmation,
- local_address_.address());
+ local_address_.address().bytes());
}
}
@@ -1264,7 +1264,7 @@ int QuicStreamFactory::CreateSession(const QuicServerId& server_id,
check_persisted_supports_quic_ = false;
IPAddressNumber last_address;
if (http_server_properties_->GetSupportsQuic(&last_address) &&
- last_address == local_address_.address()) {
+ last_address == local_address_.address().bytes()) {
require_confirmation_ = false;
}
}

Powered by Google App Engine
This is Rietveld 408576698