Commit 25648a07 authored by tyoshino@chromium.org's avatar tyoshino@chromium.org

Return ERR_NOT_IMPLEMENTED when we reach SPDY stream creation code in a factory for WebSocket

BUG=394434

Review URL: https://codereview.chromium.org/440293003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288118 0039d316-1c4b-4281-b951-d872f2087c98
parent 80407eb1
......@@ -1122,13 +1122,14 @@ int HttpStreamFactoryImpl::Job::DoCreateStream() {
// HttpStreamFactoryImpl will be creating all the SpdyHttpStreams, since it
// will know when SpdySessions become available.
if (stream_factory_->for_websockets_) {
// TODO(ricea): Restore this code when WebSockets over SPDY is implemented.
NOTREACHED();
} else {
bool use_relative_url = direct || request_info_.url.SchemeIs("https");
stream_.reset(new SpdyHttpStream(spdy_session, use_relative_url));
}
// TODO(ricea): Restore the code for WebSockets over SPDY once it's
// implemented.
if (stream_factory_->for_websockets_)
return ERR_NOT_IMPLEMENTED;
bool use_relative_url = direct || request_info_.url.SchemeIs("https");
stream_.reset(new SpdyHttpStream(spdy_session, use_relative_url));
return OK;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment