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

Unified Diff: remoting/host/log_to_server.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
Index: remoting/host/log_to_server.cc
diff --git a/remoting/host/log_to_server.cc b/remoting/host/log_to_server.cc
index ce2aa64aa08daa9a2beeec32460d020194dc932a..933b1a57ec9128fcdb1b04df9891c3307d9158a7 100644
--- a/remoting/host/log_to_server.cc
+++ b/remoting/host/log_to_server.cc
@@ -34,7 +34,7 @@ LogToServer::LogToServer(base::WeakPtr<HostStatusMonitor> monitor,
LogToServer::~LogToServer() {
signal_strategy_->RemoveListener(this);
- if (monitor_)
+ if (monitor_.get())
monitor_->RemoveStatusObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698