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

Unified Diff: net/nqe/network_quality.cc

Issue 2128793003: Factor out NetworkID and caching mechanism from n_q_e.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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/nqe/network_quality.cc
diff --git a/net/nqe/network_quality.cc b/net/nqe/network_quality.cc
index 94bcc80357d6efaa21e77cecb44b9a90ced042fc..0e5338569b278878268eec92ec7c308256da93bd 100644
--- a/net/nqe/network_quality.cc
+++ b/net/nqe/network_quality.cc
@@ -40,6 +40,12 @@ NetworkQuality& NetworkQuality::operator=(const NetworkQuality& other) {
return *this;
}
+bool NetworkQuality::operator==(const NetworkQuality& other) const {
+ return http_rtt_ == other.http_rtt_ &&
+ transport_rtt_ == other.transport_rtt_ &&
+ downstream_throughput_kbps_ == other.downstream_throughput_kbps_;
+}
+
} // namespace internal
} // namespace nqe

Powered by Google App Engine
This is Rietveld 408576698