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

Issue 2801993006: Remove unreachable code in HttpStreamFactoryImpl::Job::Orphan (Closed)

Created:
3 years, 8 months ago by xunjieli
Modified:
3 years, 8 months ago
Reviewers:
Bence
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org, Zhongyi Shi
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unreachable code in HttpStreamFactoryImpl::Job::Orphan This CL removes unreachable code that handles WebSockets path in HttpStreamFactoryImpl::Job::Orphan(). WebSockets will not have two jobs, so the code is unreachable. This CL adds DCHECK(!for_websockets()) to make sure that the code is indeed not reachable. BUG=475060 Review-Url: https://codereview.chromium.org/2801993006 Cr-Commit-Position: refs/heads/master@{#463256} Committed: https://chromium.googlesource.com/chromium/src/+/1122620622afb5b96b2c7b3ea907e2a5fb633f27

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -23 lines) Patch
M net/http/http_stream_factory_impl_job.h View 2 chunks +1 line, -4 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 2 chunks +1 line, -12 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.h View 3 chunks +4 lines, -4 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.cc View 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
xunjieli
Bence, PTAL. Thank you.
3 years, 8 months ago (2017-04-07 17:52:51 UTC) #3
Bence
LGTM
3 years, 8 months ago (2017-04-09 19:09:12 UTC) #10
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/2801993006/1
3 years, 8 months ago (2017-04-10 13:00:11 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/190438)
3 years, 8 months ago (2017-04-10 13:04:57 UTC) #14
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/2801993006/1
3 years, 8 months ago (2017-04-10 13:51:45 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/1122620622afb5b96b2c7b3ea907e2a5fb633f27
3 years, 8 months ago (2017-04-10 14:21:00 UTC) #19
Mike West
3 years, 8 months ago (2017-04-10 15:18:39 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2806383002/ by mkwst@chromium.org.

The reason for reverting is: Compilation errors popped up in
https://build.chromium.org/p/chromium/builders/Win%20x64/builds/10288:

```
[24309/50006] ACTION
//net/http:transport_security_state_unittest_data(//build/toolchain/win:x64)
FAILED: gen/net/http/transport_security_state_static_unittest2.h
```

This is the only patch in the range that touches //net, so even though it
doesn't look related, let's revert it anyway..

Powered by Google App Engine
This is Rietveld 408576698