Index: webkit/tools/test_shell/simple_socket_stream_bridge.cc |
diff --git a/webkit/tools/test_shell/simple_socket_stream_bridge.cc b/webkit/tools/test_shell/simple_socket_stream_bridge.cc |
index 0d52ea2d4004bc9baa194e781517e95f576a07ed..047eed44def27d94df7d8af440fbfeaef836f9cb 100644 |
--- a/webkit/tools/test_shell/simple_socket_stream_bridge.cc |
+++ b/webkit/tools/test_shell/simple_socket_stream_bridge.cc |
@@ -223,14 +223,11 @@ void WebSocketStreamHandleBridgeImpl::DoOnClose() { |
void SimpleSocketStreamBridge::InitializeOnIOThread( |
net::URLRequestContext* request_context) { |
g_io_thread = MessageLoop::current(); |
- if ((g_request_context = request_context)) |
- g_request_context->AddRef(); |
+ g_request_context = request_context; |
} |
void SimpleSocketStreamBridge::Cleanup() { |
g_io_thread = NULL; |
- if (g_request_context) |
- g_request_context->Release(); |
g_request_context = NULL; |
} |