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

Unified Diff: chrome/browser/chromeos/policy/cloud_external_data_manager_base.h

Issue 2910013003: Replace deprecated base::NonThreadSafe in chrome/browser/chromeos/policy in favor of SequenceChecke… (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 | chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/cloud_external_data_manager_base.h
diff --git a/chrome/browser/chromeos/policy/cloud_external_data_manager_base.h b/chrome/browser/chromeos/policy/cloud_external_data_manager_base.h
index ec078d40280c3dabff1a7b45753c6c4e137fd3b5..6d958aa26c746a88585ecfcc406cdc5a670cf670 100644
--- a/chrome/browser/chromeos/policy/cloud_external_data_manager_base.h
+++ b/chrome/browser/chromeos/policy/cloud_external_data_manager_base.h
@@ -10,7 +10,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 "components/policy/core/common/cloud/cloud_external_data_manager.h"
#include "components/policy/core/common/policy_details.h"
@@ -27,8 +27,7 @@ class ExternalPolicyDataFetcherBackend;
// policies.
// This is a common base class used by specializations for regular users and
// device-local accounts.
-class CloudExternalDataManagerBase : public CloudExternalDataManager,
- public base::NonThreadSafe {
+class CloudExternalDataManagerBase : public CloudExternalDataManager {
public:
// |get_policy_details| is used to determine the maximum size that the
// data referenced by each policy can have. Download scheduling, verification,
@@ -90,6 +89,8 @@ class CloudExternalDataManagerBase : public CloudExternalDataManager,
class Backend;
std::unique_ptr<Backend> backend_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(CloudExternalDataManagerBase);
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698