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

Unified Diff: remoting/host/setup/win/auth_code_getter.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/policy_watcher.cc ('k') | remoting/host/setup/win/auth_code_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/win/auth_code_getter.h
diff --git a/remoting/host/setup/win/auth_code_getter.h b/remoting/host/setup/win/auth_code_getter.h
index b4a575670f5009e152be96bff69a928d4932a01f..22aa0534f9f140d0f7a8a1b3234e02ecc5b12831 100644
--- a/remoting/host/setup/win/auth_code_getter.h
+++ b/remoting/host/setup/win/auth_code_getter.h
@@ -12,14 +12,14 @@
#include "base/callback.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/timer/timer.h"
#include "base/win/scoped_comptr.h"
namespace remoting {
// A class for getting an OAuth authorization code.
-class AuthCodeGetter : public base::NonThreadSafe {
+class AuthCodeGetter {
public:
AuthCodeGetter();
~AuthCodeGetter();
@@ -49,6 +49,8 @@ class AuthCodeGetter : public base::NonThreadSafe {
// The interval at which the timer fires.
base::TimeDelta timer_interval_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(AuthCodeGetter);
};
« no previous file with comments | « remoting/host/policy_watcher.cc ('k') | remoting/host/setup/win/auth_code_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698