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.cc

Issue 2142123002: [Autofill] Run autofill-profile de-dupe after sync starts if sync is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better logging and fix mathp's comments Created 4 years, 5 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.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 353a993b8d74573c257a0c65ccf15c9f3d9a87d1..cd99e11a2aadc10c9926a21498dea92aa64ca4f1 100644
--- a/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc
+++ b/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc
@@ -194,8 +194,10 @@ AutofillProfileSyncableService::MergeDataAndStartSyncing(
sync_processor_->ProcessSyncChanges(FROM_HERE, new_changes));
}
- if (webdata_backend_)
+ if (webdata_backend_) {
webdata_backend_->NotifyOfMultipleAutofillChanges();
+ webdata_backend_->NotifyThatSyncHasStarted(type);
+ }
return merge_result;
}
@@ -550,6 +552,7 @@ AutofillProfileSyncableService::CreateOrUpdateProfile(
// we will merge them.
bundle->candidates_to_merge.insert(
std::make_pair(local_profile->guid(), new_profile));
+ break;
}
}
profiles_.push_back(new_profile);

Powered by Google App Engine
This is Rietveld 408576698