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

Issue 2089243002: Split enable_alternative_service_with_different_host flag. (Closed)

Created:
4 years, 6 months ago by Bence
Modified:
4 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split enable_alternative_service_with_different_host flag. Split enable_alternative_service_with_different_host flag into separate HTTP/2 and QUIC flags. Also remove * unnecessary assigments from tests, * test in DataReductionProxyIODataTest.TestConstruction: it is moot because both HTTP/2 and QUIC are disabled anyway, * assignment from UrlRequestContextBuilder, see justification below. HTTP/2 AltSvc for alternative service host different from that of the origin is currently broken, see linked bug. Therefore enable_http2_alternative_service_with_different_host is disabled in production and for all tests for the time being. It will be used in writing tests when fixing the linked bug. Also, this flag will make it easier to remove flag enable_alternative_services_for_insecure_origins from tests. Also, no clients of the network stack should be able to flip this flag directly because of the linked bug, that is why it is not added to UrlRequestContextBuilder. On the other hand, QUIC AltSvc works correctly, thus enable_quic_alternative_service_with_different_host is enabled by default both in production and tests. It is only there temporarily as a kill switch in case something goes wrong, and will eventually be removed. Therefore no clients of the network stack should have the need to flip this flag directly. Furthermore, this flag is moot if QUIC is disabled. That is why it is not added to UrlRequestContextBuilder. BUG=615413 Committed: https://crrev.com/a8681534b79e6352c68fe106e2433fa92d0f5671 Cr-Commit-Position: refs/heads/master@{#402154}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -97 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc View 1 chunk +0 lines, -1 line 2 comments Download
M components/network_session_configurator/network_session_configurator.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/network_session_configurator/network_session_configurator_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M jingle/glue/proxy_resolving_client_socket.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M net/http/http_network_session.h View 1 chunk +6 lines, -3 lines 0 comments Download
M net/http/http_network_session.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_network_transaction_unittest.cc View 32 chunks +2 lines, -57 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.cc View 4 chunks +10 lines, -7 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 8 chunks +0 lines, -8 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/spdy/spdy_test_util_common.h View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_test_util_common.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/url_request/url_request_context_builder.cc View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Bence
Ryan: PTAL. Thank you.
4 years, 6 months ago (2016-06-22 17:54:13 UTC) #2
Ryan Hamilton
lgtm https://codereview.chromium.org/2089243002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc (left): https://codereview.chromium.org/2089243002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc#oldcode114 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc:114: EXPECT_TRUE(http_params->enable_alternative_service_with_different_host); should this check the quic param?
4 years, 6 months ago (2016-06-22 18:00:45 UTC) #3
Bence
bengr: PTAL components/data_reduction_proxy/ Sergey: PTAL at jingle/glue/ Ryan: Thank you. https://codereview.chromium.org/2089243002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc (left): https://codereview.chromium.org/2089243002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc#oldcode114 ...
4 years, 6 months ago (2016-06-23 11:11:45 UTC) #5
Sergey Ulanov
jingle lgtm
4 years, 6 months ago (2016-06-23 21:32:35 UTC) #6
bengr
components/data_reduction_proxy* lgtm
4 years, 5 months ago (2016-06-27 01:26:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2089243002/1
4 years, 5 months ago (2016-06-27 11:22:19 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-06-27 12:28:05 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 12:29:38 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a8681534b79e6352c68fe106e2433fa92d0f5671
Cr-Commit-Position: refs/heads/master@{#402154}

Powered by Google App Engine
This is Rietveld 408576698