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

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

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
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_profile_syncable_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc
diff --git a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc
index 1fa55f7402781fb450ccf76f4e4018f080bb4353..e67793de69c009e16ae6f6f9e53c03c60617645c 100644
--- a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc
+++ b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc
@@ -63,7 +63,7 @@ AutofillProfileSyncableService::AutofillProfileSyncableService(
}
AutofillProfileSyncableService::~AutofillProfileSyncableService() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
}
// static
@@ -95,7 +95,7 @@ AutofillProfileSyncableService::MergeDataAndStartSyncing(
const syncer::SyncDataList& initial_sync_data,
std::unique_ptr<syncer::SyncChangeProcessor> sync_processor,
std::unique_ptr<syncer::SyncErrorFactory> sync_error_factory) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(!sync_processor_.get());
DCHECK(sync_processor.get());
DCHECK(sync_error_factory.get());
@@ -205,7 +205,7 @@ AutofillProfileSyncableService::MergeDataAndStartSyncing(
}
void AutofillProfileSyncableService::StopSyncing(syncer::ModelType type) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK_EQ(type, syncer::AUTOFILL_PROFILE);
sync_processor_.reset();
@@ -216,7 +216,7 @@ void AutofillProfileSyncableService::StopSyncing(syncer::ModelType type) {
syncer::SyncDataList AutofillProfileSyncableService::GetAllSyncData(
syncer::ModelType type) const {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(sync_processor_.get());
DCHECK_EQ(type, syncer::AUTOFILL_PROFILE);
@@ -229,7 +229,7 @@ syncer::SyncDataList AutofillProfileSyncableService::GetAllSyncData(
syncer::SyncError AutofillProfileSyncableService::ProcessSyncChanges(
const tracked_objects::Location& from_here,
const syncer::SyncChangeList& change_list) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (!sync_processor_.get()) {
syncer::SyncError error(FROM_HERE,
syncer::SyncError::DATATYPE_ERROR,
@@ -295,7 +295,7 @@ bool AutofillProfileSyncableService::LoadAutofillData(
bool AutofillProfileSyncableService::SaveChangesToWebData(
const DataBundle& bundle) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
AutofillTable* autofill_table = GetAutofillTable();
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_profile_syncable_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698