summaryrefslogtreecommitdiffstats
path: root/net/socket_stream/socket_stream_job.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket_stream/socket_stream_job.h')
-rw-r--r--net/socket_stream/socket_stream_job.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/socket_stream/socket_stream_job.h b/net/socket_stream/socket_stream_job.h
index 13dcf70..d12e73a 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();