Fix: Properly disable Autofill Sync when Autofill itself is disabled
This is a fix to the SyncService::ReadyForStartChanged code path: When stopping the data type, set an UNREADY_ERROR (instead of leaving the error unset). This causes the Sync engine to reconfigure, which properly marks the data type as no longer active. Before, the data type did stop syncing, but was still returned as part of SyncService::GetActiveDataTypes. It also adds integration tests that AUTOFILL_PROFILE gets disabled on autofill::prefs::SetProfileAutofillEnabled(.., false). Bug: 895824, 890737 Change-Id: I3736ef010ad09ecd79a101aeff400d597956569e Reviewed-on: https://chromium-review.googlesource.com/c/1319609 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#605990}
Showing
Please register or sign in to comment