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

Unified Diff: chrome/service/cloud_print/cloud_print_token_store.h

Issue 2916303002: ThreadChecker instead of SequenceChecker in classes that use TLS. (Closed)
Patch Set: fix 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
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_token_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_token_store.h
diff --git a/chrome/service/cloud_print/cloud_print_token_store.h b/chrome/service/cloud_print/cloud_print_token_store.h
index b61ed9eeb83947a0f0daa0d7a46a45340c44a335..c8c468234d28672a854440cf6a4dc2196abc3acb 100644
--- a/chrome/service/cloud_print/cloud_print_token_store.h
+++ b/chrome/service/cloud_print/cloud_print_token_store.h
@@ -8,7 +8,7 @@
#include <string>
#include "base/logging.h"
#include "base/macros.h"
-#include "base/sequence_checker.h"
+#include "base/threading/thread_checker.h"
// This class serves as the single repository for cloud print auth tokens. This
// is only used within the CloudPrintProxyCoreThread.
@@ -26,14 +26,15 @@ class CloudPrintTokenStore {
void SetToken(const std::string& token);
std::string token() const {
- DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
+ DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
return token_;
}
private:
std::string token_;
- SEQUENCE_CHECKER(sequence_checker_);
+ // Thread-affine per use of TLS in impl.
+ THREAD_CHECKER(thread_checker_);
DISALLOW_COPY_AND_ASSIGN(CloudPrintTokenStore);
};
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698