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

Unified Diff: net/quic/quic_bandwidth.cc

Issue 1811043002: Landing Recent QUIC changes until 2016-03-15 16:26 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an export clause. Created 4 years, 9 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
« no previous file with comments | « net/quic/quic_bandwidth.h ('k') | net/quic/quic_client_promised_info_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_bandwidth.cc
diff --git a/net/quic/quic_bandwidth.cc b/net/quic/quic_bandwidth.cc
index b7fe66dfd2355c7990b6e19487df122198ee35cb..c1f9c4895da32c73723973d4e914722744bad00c 100644
--- a/net/quic/quic_bandwidth.cc
+++ b/net/quic/quic_bandwidth.cc
@@ -89,11 +89,11 @@ bool QuicBandwidth::IsZero() const {
return (bits_per_second_ == 0);
}
-QuicBandwidth QuicBandwidth::Add(const QuicBandwidth& delta) const {
+QuicBandwidth QuicBandwidth::Add(QuicBandwidth delta) const {
return QuicBandwidth(bits_per_second_ + delta.bits_per_second_);
}
-QuicBandwidth QuicBandwidth::Subtract(const QuicBandwidth& delta) const {
+QuicBandwidth QuicBandwidth::Subtract(QuicBandwidth delta) const {
return QuicBandwidth(bits_per_second_ - delta.bits_per_second_);
}
« no previous file with comments | « net/quic/quic_bandwidth.h ('k') | net/quic/quic_client_promised_info_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698