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

Unified Diff: remoting/host/host_event_logger_posix.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/host_event_logger_posix.cc
diff --git a/remoting/host/host_event_logger_posix.cc b/remoting/host/host_event_logger_posix.cc
index 6cd74126f4423271cdd97554eae6d0e058233195..932a583a7e10e668a0c489b46190b774ea338714 100644
--- a/remoting/host/host_event_logger_posix.cc
+++ b/remoting/host/host_event_logger_posix.cc
@@ -61,7 +61,7 @@ HostEventLoggerPosix::HostEventLoggerPosix(
}
HostEventLoggerPosix::~HostEventLoggerPosix() {
- if (monitor_)
+ if (monitor_.get())
monitor_->RemoveStatusObserver(this);
closelog();
}

Powered by Google App Engine
This is Rietveld 408576698