Commit 357efa37 authored by rtenneti's avatar rtenneti Committed by Commit bot

QUIC - Temporary fix for b/20760730 until channel_id_service is

supported in cronet to fix a crash bug in cronet.

BUG=487355
R=mef@chromium.org, rch@chromium.org

Review URL: https://codereview.chromium.org/1138943002

Cr-Commit-Position: refs/heads/master@{#329494}
parent b38fe83b
......@@ -578,8 +578,12 @@ QuicStreamFactory::QuicStreamFactory(
crypto_config_.AddCanonicalSuffix(".googlevideo.com");
crypto_config_.SetProofVerifier(
new ProofVerifierChromium(cert_verifier, transport_security_state));
crypto_config_.SetChannelIDSource(
new ChannelIDSourceChromium(channel_id_service));
// TODO(rtenneti): http://crbug.com/487355. Temporary fix for b/20760730 until
// channel_id_service is supported in cronet.
if (channel_id_service) {
crypto_config_.SetChannelIDSource(
new ChannelIDSourceChromium(channel_id_service));
}
base::CPU cpu;
if (cpu.has_aesni() && cpu.has_avx())
crypto_config_.PreferAesGcm();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment