Chromium Code Reviews
Description[Sync] Fix flaky TwoClientAutofillSyncTest.ConflictingFields.
Reworked how autofill_helper waits for PersonalDataManager. Expecting a
single OnPersonalDataChanged was extremely fragile due to race
conditions from remote changes being applied, and removing the
possibility for race conditions involved increasing the complexity of
test cases significantly. Instead, replaced the single expected call by
completely removing waits from modifications, and changing the wait on
read to post a task to the DB thread and wait for it to be run. While
the PersonalDataManager does sometimes cancel these query tasks, this
is safe because we block the UI thread which is where the
PersonalDataManager operates.
Removed obsolete MakeABookmarkChange method. A while back the nudge
handler was changed to schedule commits almost immediately for
integration tests, which was essentially what MakeABookmarkChange was
trying to achieve.
Removed unused SyncTest::notifications_enabled_ field, removed
AllProfilesMatch() method, and other minor refactoring changes.
BUG=701814
Review-Url: https://codereview.chromium.org/2791793002
Cr-Commit-Position: refs/heads/master@{#461889}
Committed: https://chromium.googlesource.com/chromium/src/+/fce24c540141bc39ca8aa0b29b4a16debfbdb5d4
Patch Set 1 #Patch Set 2 : Comment grammar. #Patch Set 3 : [Sync] Reworked sync tests waiting for PersonalDataManager. #Patch Set 4 : Updated comment to include a note about PersonalDataManager query cancelation. #Patch Set 5 : Added duplicate check to ProfilesMatchImpl, added wait to AutofillProfileChecker. #Patch Set 6 : Self review, converted some for loops to be ranged based. #Patch Set 7 : Removing refresh/blocking calls on modification methods. #
Total comments: 2
Patch Set 8 : Updated for Pavel's comment. #
Messages
Total messages: 33 (28 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||