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

Unified Diff: net/websockets/websocket_stream.cc

Issue 2405483002: Make the request initiator Optional (Closed)
Patch Set: Introduce NullableOrigin to use for request initiator Created 4 years, 2 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
Index: net/websockets/websocket_stream.cc
diff --git a/net/websockets/websocket_stream.cc b/net/websockets/websocket_stream.cc
index ef62c246c7bda768b1ed05bd98e81f918f0e94a8..bc84b19d840ae0e0da32fd464f64142d7b656ec5 100644
--- a/net/websockets/websocket_stream.cc
+++ b/net/websockets/websocket_stream.cc
@@ -107,7 +107,7 @@ class WebSocketStreamRequestImpl : public WebSocketStreamRequest {
headers.AddHeadersFromString(additional_headers);
url_request_->SetExtraRequestHeaders(headers);
- url_request_->set_initiator(origin);
+ url_request_->set_initiator(new url::NullableOrigin(origin));
url_request_->set_first_party_for_cookies(first_party_for_cookies);
// This passes the ownership of |handshake_stream_create_helper_| to

Powered by Google App Engine
This is Rietveld 408576698