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

Unified Diff: content/child/websocket_bridge.cc

Issue 170843007: Introduce url::Origin to represent Web Origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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: content/child/websocket_bridge.cc
diff --git a/content/child/websocket_bridge.cc b/content/child/websocket_bridge.cc
index e61ba8743502058c189c907ba4f48ffeef70bdc7..d7a5f644be525210cf775b7711d6e91191f92138 100644
--- a/content/child/websocket_bridge.cc
+++ b/content/child/websocket_bridge.cc
@@ -214,11 +214,11 @@ void WebSocketBridge::connect(
std::vector<std::string> protocols_to_pass;
for (size_t i = 0; i < protocols.size(); ++i)
protocols_to_pass.push_back(protocols[i].utf8());
- GURL origin_to_pass(origin.utf8());
+ SerializedOrigin origin_to_pass(origin);
- DVLOG(1) << "Bridge#" << channel_id_ << " Connect("
- << url << ", (" << JoinString(protocols_to_pass, ", ") << "), "
- << origin_to_pass << ")";
+ DVLOG(1) << "Bridge#" << channel_id_ << " Connect(" << url << ", ("
+ << JoinString(protocols_to_pass, ", ") << "), "
+ << origin_to_pass.string << ")";
ChildThread::current()->Send(
new WebSocketHostMsg_AddChannelRequest(channel_id_,

Powered by Google App Engine
This is Rietveld 408576698