Chromium Code Reviews| Index: net/base/network_change_notifier_win.h |
| diff --git a/net/base/network_change_notifier_win.h b/net/base/network_change_notifier_win.h |
| index 94bab7f8d100213744e72863ebb4a2b0aa6b51b8..6a503f9658b03ecd3486c1e2b45057030c170d4f 100644 |
| --- a/net/base/network_change_notifier_win.h |
| +++ b/net/base/network_change_notifier_win.h |
| @@ -12,7 +12,7 @@ |
| #include "base/compiler_specific.h" |
| #include "base/macros.h" |
| #include "base/memory/weak_ptr.h" |
| -#include "base/threading/non_thread_safe.h" |
| +#include "base/sequence_checker.h" |
| #include "base/timer/timer.h" |
| #include "base/win/object_watcher.h" |
| #include "net/base/net_export.h" |
| @@ -25,8 +25,7 @@ namespace net { |
| // on. All the NetworkChangeNotifier methods it implements are threadsafe. |
| class NET_EXPORT_PRIVATE NetworkChangeNotifierWin |
| : public NetworkChangeNotifier, |
| - public base::win::ObjectWatcher::Delegate, |
| - NON_EXPORTED_BASE(public base::NonThreadSafe) { |
|
Ryan Sleevi
2017/05/26 11:54:50
I'm not sure on this one
|
| + public base::win::ObjectWatcher::Delegate { |
| public: |
| NetworkChangeNotifierWin(); |
| @@ -108,6 +107,8 @@ class NET_EXPORT_PRIVATE NetworkChangeNotifierWin |
| // Number of times polled to check if still offline. |
| int offline_polls_; |
| + SEQUENCE_CHECKER(sequence_checker_); |
| + |
| // Used for calling WatchForAddressChange again on failure. |
| base::WeakPtrFactory<NetworkChangeNotifierWin> weak_factory_; |