[Autofill Offer] Fixed missing notification when offer data changed
The issue is the offer data is only updated when relaunch (or when personal_data_manager::refresh() is invoked) and not updated when new offer reaches client. The reason is: The full sync flow should be: 1. Offer sync bridge receive the data and populates to autofill table if found difference. 2. Notify UI sequence (personal data manager) about the change. 3. Personal data manager sends query to autofill webdata service to get data from autofill table. 4. Personal data manager gets notified by OnWebDataServiceRequestDone and refreshes local cache. 5. Autofill Offer Manager being a personal data manager observer gets notified. 6. Autofill Offer manager updates eligible domain calling UpdateEligibleMerchantDomains. Previously I thought the OnWebDataServiceRequestDone would be automatically invoked when the sync is finished, so we miss step 2 and 3. Here in this CL fix it. Bug: 1112095 Change-Id: I38ac61f3d5608eec1c8ac92538e457e566b3f538 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2444454Reviewed-by:Marc Treib <treib@chromium.org> Commit-Queue: Siyu An <siyua@chromium.org> Cr-Commit-Position: refs/heads/master@{#814321}
Showing
Please register or sign in to comment