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

Unified Diff: net/quic/core/quic_version_manager.cc

Issue 2820423002: Move quic_flags.h from net/quic/core to net/quic/platform and split into api and impl. (Closed)
Patch Set: Created 3 years, 8 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/core/quic_utils.cc ('k') | net/quic/core/quic_version_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_version_manager.cc
diff --git a/net/quic/core/quic_version_manager.cc b/net/quic/core/quic_version_manager.cc
index 46f13886adaaab48a5f6adacdb950f6c3f306882..fb8bdf01ca04043e0df8a4a23c818d4c13040d20 100644
--- a/net/quic/core/quic_version_manager.cc
+++ b/net/quic/core/quic_version_manager.cc
@@ -4,13 +4,13 @@
#include "net/quic/core/quic_version_manager.h"
-#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_versions.h"
+#include "net/quic/platform/api/quic_flags.h"
namespace net {
QuicVersionManager::QuicVersionManager(QuicVersionVector supported_versions)
- : enable_version_39_(base::GetFlag(FLAGS_quic_enable_version_39)),
+ : enable_version_39_(GetQuicFlag(FLAGS_quic_enable_version_39)),
enable_version_38_(FLAGS_quic_reloadable_flag_quic_enable_version_38),
allowed_supported_versions_(supported_versions),
filtered_supported_versions_(
@@ -24,9 +24,9 @@ const QuicVersionVector& QuicVersionManager::GetSupportedVersions() {
}
void QuicVersionManager::MaybeRefilterSupportedVersions() {
- if (enable_version_39_ != base::GetFlag(FLAGS_quic_enable_version_39) ||
+ if (enable_version_39_ != GetQuicFlag(FLAGS_quic_enable_version_39) ||
enable_version_38_ != FLAGS_quic_reloadable_flag_quic_enable_version_38) {
- enable_version_39_ = base::GetFlag(FLAGS_quic_enable_version_39);
+ enable_version_39_ = GetQuicFlag(FLAGS_quic_enable_version_39);
enable_version_38_ = FLAGS_quic_reloadable_flag_quic_enable_version_38;
RefilterSupportedVersions();
}
« no previous file with comments | « net/quic/core/quic_utils.cc ('k') | net/quic/core/quic_version_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698