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

Unified Diff: remoting/host/host_status_logger.h

Issue 2911893003: Deprecate NonThreadSafe in remoting in favor of SequenceChecker. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « remoting/host/disconnect_window_win.cc ('k') | remoting/host/host_status_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_status_logger.h
diff --git a/remoting/host/host_status_logger.h b/remoting/host/host_status_logger.h
index 19983db2e6f1076b20a0f4903e8c756472ed17a4..55771cc3adc1d16b5a76e9cd5fa73b977278abb6 100644
--- a/remoting/host/host_status_logger.h
+++ b/remoting/host/host_status_logger.h
@@ -9,7 +9,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "remoting/host/host_status_observer.h"
#include "remoting/protocol/transport.h"
#include "remoting/signaling/log_to_server.h"
@@ -21,8 +21,7 @@ class HostStatusMonitor;
// HostStatusLogger sends host log entries to a server.
// The contents of the log entries are described in server_log_entry_host.cc.
// They do not contain any personally identifiable information.
-class HostStatusLogger : public HostStatusObserver,
- public base::NonThreadSafe {
+class HostStatusLogger : public HostStatusObserver {
public:
HostStatusLogger(base::WeakPtr<HostStatusMonitor> monitor,
ServerLogEntry::Mode mode,
@@ -54,6 +53,8 @@ class HostStatusLogger : public HostStatusObserver,
std::map<std::string, protocol::TransportRoute::RouteType>
connection_route_type_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(HostStatusLogger);
};
« no previous file with comments | « remoting/host/disconnect_window_win.cc ('k') | remoting/host/host_status_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698