Index: chrome/browser/renderer_host/socket_stream_host.cc |
diff --git a/chrome/browser/renderer_host/socket_stream_host.cc b/chrome/browser/renderer_host/socket_stream_host.cc |
index 6fc49b43b8359548a1b8b8fe3ae7e5a905a15bd7..67e860a4117eee191eca41f06a986e457ea1b778 100644 |
--- a/chrome/browser/renderer_host/socket_stream_host.cc |
+++ b/chrome/browser/renderer_host/socket_stream_host.cc |
@@ -9,7 +9,7 @@ |
#include "chrome/browser/net/url_request_context_getter.h" |
#include "chrome/common/net/socket_stream.h" |
#include "chrome/common/render_messages.h" |
-#include "net/socket_stream/socket_stream.h" |
+#include "net/socket_stream/socket_stream_job.h" |
static const char* kSocketHostKey = "socketHost"; |
@@ -55,7 +55,7 @@ SocketStreamHost::~SocketStreamHost() { |
void SocketStreamHost::Connect(const GURL& url) { |
LOG(INFO) << "SocketStreamHost::Connect url=" << url; |
- socket_ = new net::SocketStream(url, delegate_); |
+ socket_ = net::SocketStreamJob::CreateSocketStreamJob(url, delegate_); |
URLRequestContextGetter* context_getter = Profile::GetDefaultRequestContext(); |
if (context_getter) |
socket_->set_context(context_getter->GetURLRequestContext()); |