Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1933)

Unified Diff: net/socket_stream/socket_stream_job.h

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_config_service_linux.cc ('k') | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « net/proxy/proxy_config_service_linux.cc ('k') | net/spdy/spdy_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698