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

Unified Diff: components/autofill/core/browser/webdata/autofill_profile_syncable_service.h

Issue 2908973003: Replace deprecated base::NonThreadSafe in components/autofill 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
Index: components/autofill/core/browser/webdata/autofill_profile_syncable_service.h
diff --git a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h
index bed681d98f966aca2f79e5f2e5b811df4d5418d0..897204829cd2735b2a1985097ae146bc1b7eea19 100644
--- a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h
+++ b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.h
@@ -12,9 +12,9 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/scoped_observer.h"
+#include "base/sequence_checker.h"
#include "base/supports_user_data.h"
#include "base/synchronization/lock.h"
-#include "base/threading/non_thread_safe.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/webdata/autofill_change.h"
#include "components/autofill/core/browser/webdata/autofill_entry.h"
@@ -48,8 +48,7 @@ extern const char kAutofillProfileTag[];
class AutofillProfileSyncableService
: public base::SupportsUserData::Data,
public syncer::SyncableService,
- public AutofillWebDataServiceObserverOnDBThread,
- public base::NonThreadSafe {
+ public AutofillWebDataServiceObserverOnDBThread {
public:
~AutofillProfileSyncableService() override;
@@ -194,6 +193,8 @@ class AutofillProfileSyncableService
syncer::SyncableService::StartSyncFlare flare_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(AutofillProfileSyncableService);
};

Powered by Google App Engine
This is Rietveld 408576698