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

Unified Diff: remoting/base/oauth_token_getter_impl.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 | « no previous file | remoting/base/oauth_token_getter_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/oauth_token_getter_impl.h
diff --git a/remoting/base/oauth_token_getter_impl.h b/remoting/base/oauth_token_getter_impl.h
index c725d524b1edd0c8bd5ea88c8a752fc2ac92d85e..e5450a27244292dab8cdb762925a202d77bf72f9 100644
--- a/remoting/base/oauth_token_getter_impl.h
+++ b/remoting/base/oauth_token_getter_impl.h
@@ -8,7 +8,7 @@
#include <queue>
#include "base/callback.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "google_apis/gaia/gaia_oauth_client.h"
@@ -29,7 +29,6 @@ namespace remoting {
// On first usage it is likely an application will only have an auth code,
// from this you can get a refresh token which can be reused next app launch.
class OAuthTokenGetterImpl : public OAuthTokenGetter,
- public base::NonThreadSafe,
public gaia::GaiaOAuthClient::Delegate {
public:
OAuthTokenGetterImpl(
@@ -83,6 +82,8 @@ class OAuthTokenGetterImpl : public OAuthTokenGetter,
base::Time access_token_expiry_time_;
std::queue<OAuthTokenGetter::TokenCallback> pending_callbacks_;
std::unique_ptr<base::OneShotTimer> refresh_timer_;
+
+ SEQUENCE_CHECKER(sequence_checker_);
};
} // namespace remoting
« no previous file with comments | « no previous file | remoting/base/oauth_token_getter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698