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

Unified Diff: net/http/http_network_transaction.cc

Issue 82823004: Use new GURL::SchemeIsWSOrWSS method in HttpNetworkTransaction (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index f8fc2c0d4014df62b085aebd66a8efc086d0f908..d2b8471dc2bb2f2230127bde5753956cfb7d44c0 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1509,8 +1509,8 @@ GURL HttpNetworkTransaction::AuthURL(HttpAuth::Target target) const {
}
bool HttpNetworkTransaction::ForWebSocketHandshake() const {
- return (websocket_handshake_stream_base_create_helper_ &&
- (request_->url.SchemeIs("ws") || request_->url.SchemeIs("wss")));
+ return websocket_handshake_stream_base_create_helper_ &&
+ request_->url.SchemeIsWSOrWSS();
}
#define STATE_CASE(s) \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698