Skip to content

Commit

Permalink
Revert "Default quic to on for all platforms" (#3923)
Browse files Browse the repository at this point in the history
Reverts youtube/cobalt#3752

#3913 did not fully revert this and ended up not doing anything.

b/348717754
  • Loading branch information
andrewsavage1 committed Aug 1, 2024
1 parent 7536fb0 commit 1563224
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cobalt/network/url_request_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,13 @@ URLRequestContext::URLRequestContext(
quic::ParsedQuicVersionVector{quic::ParsedQuicVersion::Q046()};
url_request_context_builder->set_quic_context(std::move(quic_context));

base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
bool quic_enabled = !command_line->HasSwitch(switches::kDisableQuic);
bool quic_enabled =
configuration::Configuration::GetInstance()->CobaltEnableQuic();
if (quic_enabled) {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
quic_enabled = !command_line->HasSwitch(switches::kDisableQuic);
}

url_request_context_builder->SetSpdyAndQuicEnabled(/*spdy_enabled=*/true,
quic_enabled);

Expand Down

0 comments on commit 1563224

Please sign in to comment.