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

Unified Diff: net/dns/address_sorter_posix.h

Issue 2910473005: Deprecate NonThreadSafe in net/ in favor of SequenceChecker/ThreadChecker. (Closed)
Patch Set: another compile nit 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
Index: net/dns/address_sorter_posix.h
diff --git a/net/dns/address_sorter_posix.h b/net/dns/address_sorter_posix.h
index e370f226003bb5a4f7f5a5f5447770694f03af98..d0b990f1434379fac83ef453cc4f868c952bdb6b 100644
--- a/net/dns/address_sorter_posix.h
+++ b/net/dns/address_sorter_posix.h
@@ -9,7 +9,7 @@
#include <vector>
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "net/base/address_list.h"
#include "net/base/ip_address.h"
#include "net/base/net_export.h"
@@ -24,7 +24,6 @@ class ClientSocketFactory;
// thread-safe and always completes synchronously.
class NET_EXPORT_PRIVATE AddressSorterPosix
: public AddressSorter,
- public base::NonThreadSafe,
public NetworkChangeNotifier::IPAddressObserver {
public:
// Generic policy entry.
@@ -85,6 +84,8 @@ class NET_EXPORT_PRIVATE AddressSorterPosix
PolicyTable label_table_;
PolicyTable ipv4_scope_table_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(AddressSorterPosix);
};

Powered by Google App Engine
This is Rietveld 408576698