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

Unified Diff: content/browser/renderer_host/websocket_host.cc

Issue 1153763002: Hardening the 'url::Origin' implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More. Created 5 years, 7 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 | « content/browser/frame_host/frame_tree_node.cc ('k') | content/child/websocket_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/websocket_host.cc
diff --git a/content/browser/renderer_host/websocket_host.cc b/content/browser/renderer_host/websocket_host.cc
index cd8dd25a9978ad47ca6478bf5ecd1ea3c6b80852..57192f2983c45f7c8230659f2e1f095de57543d3 100644
--- a/content/browser/renderer_host/websocket_host.cc
+++ b/content/browser/renderer_host/websocket_host.cc
@@ -350,8 +350,8 @@ void WebSocketHost::OnAddChannelRequest(
DVLOG(3) << "WebSocketHost::OnAddChannelRequest"
<< " routing_id=" << routing_id_ << " socket_url=\"" << socket_url
<< "\" requested_protocols=\""
- << JoinString(requested_protocols, ", ") << "\" origin=\""
- << origin.string() << "\"";
+ << JoinString(requested_protocols, ", ") << "\" origin=\"" << origin
+ << "\"";
DCHECK(!channel_);
if (delay_ > base::TimeDelta()) {
@@ -378,8 +378,8 @@ void WebSocketHost::AddChannel(
DVLOG(3) << "WebSocketHost::AddChannel"
<< " routing_id=" << routing_id_ << " socket_url=\"" << socket_url
<< "\" requested_protocols=\""
- << JoinString(requested_protocols, ", ") << "\" origin=\""
- << origin.string() << "\"";
+ << JoinString(requested_protocols, ", ") << "\" origin=\"" << origin
+ << "\"";
DCHECK(!channel_);
« no previous file with comments | « content/browser/frame_host/frame_tree_node.cc ('k') | content/child/websocket_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698