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

Unified Diff: components/captive_portal/captive_portal_detector.h

Issue 2906233005: Deprecate NonThreadSafe in components/captive_portal 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 | « no previous file | components/captive_portal/captive_portal_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/captive_portal/captive_portal_detector.h
diff --git a/components/captive_portal/captive_portal_detector.h b/components/captive_portal/captive_portal_detector.h
index e25cd443f4e3ba1ac64412349c4872b8fca251ad..b5a26331cf2f033b6c705b7439e15b81ed60e60d 100644
--- a/components/captive_portal/captive_portal_detector.h
+++ b/components/captive_portal/captive_portal_detector.h
@@ -11,7 +11,7 @@
#include "base/compiler_specific.h"
#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 "components/captive_portal/captive_portal_export.h"
#include "components/captive_portal/captive_portal_types.h"
@@ -25,8 +25,7 @@ class GURL;
namespace captive_portal {
class CAPTIVE_PORTAL_EXPORT CaptivePortalDetector
- : public net::URLFetcherDelegate,
- public base::NonThreadSafe {
+ : public net::URLFetcherDelegate {
public:
struct Results {
Results()
@@ -104,6 +103,8 @@ class CAPTIVE_PORTAL_EXPORT CaptivePortalDetector
// Test time used by unit tests.
base::Time time_for_testing_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(CaptivePortalDetector);
};
« no previous file with comments | « no previous file | components/captive_portal/captive_portal_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698