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

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: 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: 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..c03ba4d6449c2304bc1788b86152d1a242ca3f98 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.
@@ -33,7 +33,8 @@ class CloudPrintTokenStore {
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);
};

Powered by Google App Engine
This is Rietveld 408576698