Commit 058b86f3 authored by Matthias Körber's avatar Matthias Körber Committed by Commit Bot

[Autofill][Slimshady] Mark profile entries from settings as verified.

Change-Id: I5c7d6f2d2d33127b2e2b13b1b48c9213469a53c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2339633Reviewed-by: default avatarDominic Battré <battre@chromium.org>
Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Auto-Submit: Matthias Körber <koerber@google.com>
Cr-Commit-Position: refs/heads/master@{#796142}
parent 5d9a963d
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "chrome/browser/ui/views/payments/validating_textfield.h" #include "chrome/browser/ui/views/payments/validating_textfield.h"
#include "components/autofill/core/browser/autofill_type.h" #include "components/autofill/core/browser/autofill_type.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h" #include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/data_model/autofill_structured_address_component.h"
#include "components/autofill/core/browser/geo/autofill_country.h" #include "components/autofill/core/browser/geo/autofill_country.h"
#include "components/autofill/core/browser/geo/phone_number_i18n.h" #include "components/autofill/core/browser/geo/phone_number_i18n.h"
#include "components/autofill/core/browser/personal_data_manager.h" #include "components/autofill/core/browser/personal_data_manager.h"
...@@ -133,8 +134,10 @@ base::string16 ContactInfoEditorViewController::GetSheetTitle() { ...@@ -133,8 +134,10 @@ base::string16 ContactInfoEditorViewController::GetSheetTitle() {
void ContactInfoEditorViewController::PopulateProfile( void ContactInfoEditorViewController::PopulateProfile(
autofill::AutofillProfile* profile) { autofill::AutofillProfile* profile) {
for (const auto& field : text_fields()) { for (const auto& field : text_fields()) {
profile->SetInfo(autofill::AutofillType(field.second.type), profile->SetInfoWithVerificationStatus(
field.first->GetText(), state()->GetApplicationLocale()); autofill::AutofillType(field.second.type), field.first->GetText(),
state()->GetApplicationLocale(),
autofill::structured_address::VerificationStatus::kUserVerified);
} }
profile->set_origin(autofill::kSettingsOrigin); profile->set_origin(autofill::kSettingsOrigin);
} }
......
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