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

Issue 2359153003: Minor cleanups in HttpStreamFactoryImpl and member classes. (Closed)

Created:
4 years, 3 months ago by Bence
Modified:
4 years, 3 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Minor cleanups in HttpStreamFactoryImpl and member classes. * Remove all unnecessary IsSpdyAlternative() checks. IsSpdyAlternative() implies origin_url_.SchemeIs(url::kHttpsScheme), see DCHECK in constructor. * Inline now const |spdy_certificate_error_|. * Inline and remove SwitchToSpdyMode(). This method was only used twice out of four potential places. Removal makes sense as the method is trivial, and there are no corresponding methods for |using_spdy_ = false|, |using_quic_ = true|, and |using_quic_ = false| assignments. * Use url_constants instead of string literals for schemes (http, https, ftp, and wss). There has already been two uses of such constants. * Remove unused |destination| local variable. * Fix some comments. * git cl lint: Remove unnecessary semicolon, add includes. BUG=475060 Committed: https://crrev.com/91e8446d820f2ba118504c73c60ba96cc1b150ac Cr-Commit-Position: refs/heads/master@{#420725}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Remove |spdy_certificate_error_|. #

Patch Set 3 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -74 lines) Patch
M net/http/http_stream_factory_impl.cc View 2 chunks +3 lines, -1 line 0 comments Download
M net/http/http_stream_factory_impl_job.h View 1 4 chunks +14 lines, -23 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 21 chunks +40 lines, -47 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.cc View 5 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
Bence
Ryan: PTAL. Thank you. https://codereview.chromium.org/2359153003/diff/1/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (left): https://codereview.chromium.org/2359153003/diff/1/net/http/http_stream_factory_impl_job.cc#oldcode380 net/http/http_stream_factory_impl_job.cc:380: proxy_info_.proxy_server().is_https() || IsSpdyAlternative(); See DCHECK ...
4 years, 3 months ago (2016-09-22 19:30:33 UTC) #9
Ryan Hamilton
Everything other than IsSpdyAlternative() removals looks good to me. I'm not sure I understand why ...
4 years, 3 months ago (2016-09-22 21:38:05 UTC) #10
Bence
PTAL. On 2016/09/22 21:38:05, Ryan Hamilton wrote: > Everything other than IsSpdyAlternative() removals looks good ...
4 years, 3 months ago (2016-09-23 13:39:08 UTC) #11
Bence
PTAL. https://codereview.chromium.org/2359153003/diff/1/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/2359153003/diff/1/net/http/http_stream_factory_impl_job.cc#newcode1306 net/http/http_stream_factory_impl_job.cc:1306: // We currently only support Alternate-Protocol where the ...
4 years, 3 months ago (2016-09-23 13:41:04 UTC) #12
Ryan Hamilton
lgtm
4 years, 3 months ago (2016-09-23 19:26:03 UTC) #17
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/2359153003/40001
4 years, 3 months ago (2016-09-23 20:04:15 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-23 21:03:40 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 21:05:28 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/91e8446d820f2ba118504c73c60ba96cc1b150ac
Cr-Commit-Position: refs/heads/master@{#420725}

Powered by Google App Engine
This is Rietveld 408576698