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

Issue 874603004: Remove HasAlternateProtocol(). (Closed)

Created:
5 years, 10 months ago by Bence
Modified:
5 years, 10 months ago
Reviewers:
Ryan Hamilton
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

Remove HasAlternateProtocol(). If GetAlternateProtocol() is called but there is no alternate protocol, it now returns one with UNINITIALIZED_ALTERNATE_PROTOCOL. See https://crrev.com/665083009 for the context of this change and how draft future changes might rely on this CL. BUG=392575 Committed: https://crrev.com/3c255331e787370ef99f38319ce2d812a89f5b82 Cr-Commit-Position: refs/heads/master@{#314428}

Patch Set 1 #

Patch Set 2 : Update more HasAlternateProtocol callers. #

Patch Set 3 : Rename. #

Patch Set 4 : Remove HasAlternateProtocol(). #

Patch Set 5 : Return broken alternate protocols. #

Total comments: 5

Patch Set 6 : Minor. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -134 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 3 chunks +8 lines, -10 lines 0 comments Download
M net/http/http_server_properties.h View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M net/http/http_server_properties_impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_server_properties_impl.cc View 1 2 3 4 4 chunks +12 lines, -24 lines 2 comments Download
M net/http/http_server_properties_impl_unittest.cc View 1 2 3 4 16 chunks +29 lines, -44 lines 0 comments Download
M net/http/http_server_properties_manager.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_server_properties_manager.cc View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 1 2 3 4 5 9 chunks +18 lines, -20 lines 0 comments Download
M net/http/http_stream_factory.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M net/quic/quic_stream_factory.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
Bence
Ryan, PTAL. Thanks.
5 years, 10 months ago (2015-02-02 23:39:13 UTC) #2
Ryan Hamilton
The main change looks reasonable, but a couple of high-level comments: * If callers no ...
5 years, 10 months ago (2015-02-03 00:07:01 UTC) #3
Bence
PTAL. On 2015/02/03 00:07:01, Ryan Hamilton wrote: > The main change looks reasonable, but a ...
5 years, 10 months ago (2015-02-03 16:05:45 UTC) #4
Ryan Hamilton
On 2015/02/03 16:05:45, Bence wrote: > PTAL. > > On 2015/02/03 00:07:01, Ryan Hamilton wrote: ...
5 years, 10 months ago (2015-02-03 18:40:14 UTC) #5
Bence
On 2015/02/03 18:40:14, Ryan Hamilton wrote: > Ah, I see. I would expect that in ...
5 years, 10 months ago (2015-02-03 18:54:49 UTC) #6
Ryan Hamilton
On 2015/02/03 18:54:49, Bence wrote: > On 2015/02/03 18:40:14, Ryan Hamilton wrote: > > Ah, ...
5 years, 10 months ago (2015-02-03 19:25:04 UTC) #7
Bence
PTAL https://codereview.chromium.org/874603004/diff/80001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (left): https://codereview.chromium.org/874603004/diff/80001/net/http/http_server_properties_impl.cc#oldcode261 net/http/http_server_properties_impl.cc:261: if (it != alternate_protocol_map_.end()) Note that previously GetAlternateProtocol() ...
5 years, 10 months ago (2015-02-03 20:43:21 UTC) #8
Ryan Hamilton
This is lookin' good! Can you make a small change to the CL description to ...
5 years, 10 months ago (2015-02-03 22:29:03 UTC) #9
Bence
PTAL. Answers to your questions below. Thanks. https://codereview.chromium.org/874603004/diff/80001/net/http/http_stream_factory_impl.cc File net/http/http_stream_factory_impl.cc (left): https://codereview.chromium.org/874603004/diff/80001/net/http/http_stream_factory_impl.cc#oldcode179 net/http/http_stream_factory_impl.cc:179: AlternateProtocolInfo(0, UNINITIALIZED_ALTERNATE_PROTOCOL, ...
5 years, 10 months ago (2015-02-03 22:52:37 UTC) #10
Ryan Hamilton
lgtm Thanks!
5 years, 10 months ago (2015-02-03 23:02:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874603004/60002
5 years, 10 months ago (2015-02-03 23:07:53 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:60002)
5 years, 10 months ago (2015-02-03 23:12:43 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 23:13:37 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3c255331e787370ef99f38319ce2d812a89f5b82
Cr-Commit-Position: refs/heads/master@{#314428}

Powered by Google App Engine
This is Rietveld 408576698