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

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 2801993006: Remove unreachable code in HttpStreamFactoryImpl::Job::Orphan (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_stream_factory_impl_job.h ('k') | net/http/http_stream_factory_impl_job_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory_impl_job.cc
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
index e250ceeab411ef90ccb7aace0ba14e863d11f141..398f84e194c5076d953dfeade541482bc44e4bb9 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -334,17 +334,6 @@ void HttpStreamFactoryImpl::Job::Resume() {
void HttpStreamFactoryImpl::Job::Orphan() {
net_log_.AddEvent(NetLogEventType::HTTP_STREAM_JOB_ORPHANED);
-
- if (delegate_->for_websockets()) {
- // We cancel this job because a WebSocketHandshakeStream can't be created
- // without a WebSocketHandshakeStreamBase::CreateHelper which is stored in
- // the Request class and isn't retrievable by this job.
- if (connection_ && connection_->socket()) {
- connection_->socket()->Disconnect();
- }
- delegate_->OnOrphanedJobComplete(this);
- }
- // |this| may be deleted after this call.
}
void HttpStreamFactoryImpl::Job::SetPriority(RequestPriority priority) {
@@ -732,7 +721,7 @@ int HttpStreamFactoryImpl::Job::StartInternal() {
}
int HttpStreamFactoryImpl::Job::DoStart() {
- const NetLogWithSource* net_log = delegate_->GetNetLog(this);
+ const NetLogWithSource* net_log = delegate_->GetNetLog();
if (net_log) {
net_log_.BeginEvent(
« no previous file with comments | « net/http/http_stream_factory_impl_job.h ('k') | net/http/http_stream_factory_impl_job_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698