Replace WebSockets' use of 'url::DeprecatedSerializedOrigin'.
BUG=512429
[email protected]
Review URL: https://codereview.chromium.org/1249673002
Cr-Commit-Position: refs/heads/master@{#340410}
diff --git a/net/websockets/websocket_test_util.cc b/net/websockets/websocket_test_util.cc
index 5396020..1df0552 100644
--- a/net/websockets/websocket_test_util.cc
+++ b/net/websockets/websocket_test_util.cc
@@ -13,6 +13,7 @@
#include "base/strings/stringprintf.h"
#include "net/proxy/proxy_service.h"
#include "net/socket/socket_test_util.h"
+#include "url/origin.h"
namespace net {
@@ -35,7 +36,7 @@
std::string WebSocketStandardRequest(const std::string& path,
const std::string& host,
- const std::string& origin,
+ const url::Origin& origin,
const std::string& extra_headers) {
return WebSocketStandardRequestWithCookies(path, host, origin, std::string(),
extra_headers);
@@ -44,7 +45,7 @@
std::string WebSocketStandardRequestWithCookies(
const std::string& path,
const std::string& host,
- const std::string& origin,
+ const url::Origin& origin,
const std::string& cookies,
const std::string& extra_headers) {
// Unrelated changes in net/http may change the order and default-values of
@@ -66,7 +67,7 @@
"Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\n"
"Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n"
"%s\r\n",
- path.c_str(), host.c_str(), origin.c_str(), cookies.c_str(),
+ path.c_str(), host.c_str(), origin.Serialize().c_str(), cookies.c_str(),
extra_headers.c_str());
}