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

Unified Diff: net/quic/congestion_control/loss_detection_interface.cc

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: 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/congestion_control/loss_detection_interface.cc
diff --git a/net/quic/congestion_control/loss_detection_interface.cc b/net/quic/congestion_control/loss_detection_interface.cc
index 3e8b0101e0c920c01b6a0f790ff484446d3ea183..bf894286d3388c08ee0aef48c399b4771ce05a37 100644
--- a/net/quic/congestion_control/loss_detection_interface.cc
+++ b/net/quic/congestion_control/loss_detection_interface.cc
@@ -5,8 +5,6 @@
#include "net/quic/congestion_control/loss_detection_interface.h"
#include "net/quic/congestion_control/general_loss_algorithm.h"
-#include "net/quic/congestion_control/tcp_loss_algorithm.h"
-#include "net/quic/congestion_control/time_loss_algorithm.h"
#include "net/quic/quic_bug_tracker.h"
#include "net/quic/quic_flags.h"
@@ -15,17 +13,7 @@ namespace net {
// Factory for loss detection algorithm.
LossDetectionInterface* LossDetectionInterface::Create(
LossDetectionType loss_type) {
- if (FLAGS_quic_general_loss_algorithm) {
- return new GeneralLossAlgorithm(loss_type);
- }
- switch (loss_type) {
- case kNack:
- return new TCPLossAlgorithm();
- case kTime:
- return new TimeLossAlgorithm();
- }
- QUIC_BUG << "Unknown loss detection algorithm:" << loss_type;
- return nullptr;
+ return new GeneralLossAlgorithm(loss_type);
}
} // namespace net
« no previous file with comments | « net/quic/congestion_control/general_loss_algorithm_test.cc ('k') | net/quic/congestion_control/tcp_cubic_bytes_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698