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

Unified Diff: remoting/protocol/fake_session.cc

Issue 15927028: Update remoting/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« remoting/client/frame_consumer_proxy.cc ('K') | « remoting/host/log_to_server.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_session.cc
diff --git a/remoting/protocol/fake_session.cc b/remoting/protocol/fake_session.cc
index d681e1801eb41f7ba15f64d6a2d687119c7e1f20..f46d25d9c6453ee4417723e83ebd92cb3548eace 100644
--- a/remoting/protocol/fake_session.cc
+++ b/remoting/protocol/fake_session.cc
@@ -127,10 +127,12 @@ void FakeSocket::DoWrite(net::IOBuffer* buf, int buf_len) {
written_data_.insert(written_data_.end(),
buf->data(), buf->data() + buf_len);
- if (peer_socket_) {
- message_loop_->PostTask(FROM_HERE, base::Bind(
- &FakeSocket::AppendInputData, peer_socket_,
- std::vector<char>(buf->data(), buf->data() + buf_len)));
+ if (peer_socket_.get()) {
+ message_loop_->PostTask(
+ FROM_HERE,
+ base::Bind(&FakeSocket::AppendInputData,
+ peer_socket_,
+ std::vector<char>(buf->data(), buf->data() + buf_len)));
}
}
« remoting/client/frame_consumer_proxy.cc ('K') | « remoting/host/log_to_server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698