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

Unified Diff: net/proxy/dhcp_proxy_script_fetcher_win.h

Issue 2910473005: Deprecate NonThreadSafe in net/ in favor of SequenceChecker/ThreadChecker. (Closed)
Patch Set: Fix chromecast compile 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/proxy/dhcp_proxy_script_fetcher_win.h
diff --git a/net/proxy/dhcp_proxy_script_fetcher_win.h b/net/proxy/dhcp_proxy_script_fetcher_win.h
index 3ca981d6a62624d256a7b5e52898b3b1d7a7c029..06410de19ce09bd5277aefc54916f53608febaac 100644
--- a/net/proxy/dhcp_proxy_script_fetcher_win.h
+++ b/net/proxy/dhcp_proxy_script_fetcher_win.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "net/base/net_export.h"
@@ -31,8 +31,7 @@ class URLRequestContext;
// Windows-specific implementation.
class NET_EXPORT_PRIVATE DhcpProxyScriptFetcherWin
: public DhcpProxyScriptFetcher,
- public base::SupportsWeakPtr<DhcpProxyScriptFetcherWin>,
- NON_EXPORTED_BASE(public base::NonThreadSafe) {
+ public base::SupportsWeakPtr<DhcpProxyScriptFetcherWin> {
public:
// Creates a DhcpProxyScriptFetcherWin that issues requests through
// |url_request_context|. |url_request_context| must remain valid for
@@ -178,6 +177,8 @@ class NET_EXPORT_PRIVATE DhcpProxyScriptFetcherWin
// Worker pool we use for all DHCP lookup tasks.
scoped_refptr<base::SequencedWorkerPool> worker_pool_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptFetcherWin);
};

Powered by Google App Engine
This is Rietveld 408576698