Index: net/socket_stream/socket_stream_job.h |
diff --git a/net/socket_stream/socket_stream_job.h b/net/socket_stream/socket_stream_job.h |
index 13dcf705b0cd5992bb850105455c29a20d61167d..d12e73aff313f1a0d7dea74281dfe52bd41c6ef3 100644 |
--- a/net/socket_stream/socket_stream_job.h |
+++ b/net/socket_stream/socket_stream_job.h |
@@ -50,11 +50,11 @@ class NET_EXPORT SocketStreamJob |
virtual void SetUserData(const void* key, SocketStream::UserData* data); |
URLRequestContext* context() const { |
- return socket_ ? socket_->context() : 0; |
+ return socket_.get() ? socket_->context() : 0; |
} |
void set_context(URLRequestContext* context) { |
- if (socket_) |
- socket_->set_context(context); |
+ if (socket_.get()) |
+ socket_->set_context(context); |
} |
virtual void Connect(); |