Commit 6d01af74 authored by Jérôme Lebel's avatar Jérôme Lebel Committed by Commit Bot

[iOS] Should turn on autocomplete wallet with sync everything toggle

Autocomplete wallet needs to be explicitly turned on when the user turns
on sync everything.

Bug: 938012
Change-Id: I2c90e592a39b6f305c0c4212b2ef7d1eadcf1681
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1505497Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Jérôme Lebel <jlebel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638129}
parent ac159148
......@@ -404,6 +404,12 @@ NSString* kGoogleServicesSyncErrorImage = @"google_services_sync_error";
switch (itemType) {
case SyncEverythingItemType:
self.syncSetupService->SetSyncingAllDataTypes(value);
if (value) {
// When sync everything is turned on, the autocomplete wallet
// should be turned on. This code can be removed once
// crbug.com/937234 is fixed.
self.autocompleteWalletPreference.value = true;
}
break;
case AutofillDataTypeItemType:
case BookmarksDataTypeItemType:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment