Index: components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc |
diff --git a/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc b/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc |
index e4e0d05170cf681e93a9af4b24bdbb53d5fa53a7..e49fda75eb58dcb42a350bcc55a28896eff7758c 100644 |
--- a/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc |
+++ b/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc |
@@ -76,7 +76,7 @@ CreditCard CardFromSpecifics(const sync_pb::WalletMaskedCreditCard& card) { |
AutofillProfile ProfileFromSpecifics( |
const sync_pb::WalletPostalAddress& address) { |
- AutofillProfile profile(AutofillProfile::SERVER_PROFILE, address.id()); |
+ AutofillProfile profile(AutofillProfile::SERVER_PROFILE, std::string()); |
// AutofillProfile stores multi-line addresses with newline separators. |
std::vector<std::string> street_address(address.street_address().begin(), |
@@ -109,6 +109,8 @@ AutofillProfile ProfileFromSpecifics( |
base::UTF8ToUTF16(address.phone_number()), |
profile.language_code()); |
+ profile.GenerateServerProfileIdentifier(); |
+ |
return profile; |
} |