Skip to content

Commit

Permalink
[Autofill] Rename ServerFieldType to FieldType 12/16
Browse files Browse the repository at this point in the history
This CL does the renaming in //chrome/browser/devtools/protocol.

Produced by
$ git ls-files chrome/browser/devtools/protocol | \
  grep '\.\(h\|cc\|mm\)$' | \
  xargs grep -l 'ServerFieldType' | \
  xargs sed --in-place -s 's/\<ServerFieldType\>/FieldType/g'

Bug: 1511368, 1007974, 1488408
Change-Id: I5bcf37e8eea6ea220b3d68c4cc5e983e2a37ad88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5124578
Commit-Queue: Danil Somsikov <[email protected]>
Auto-Submit: Christoph Schwering <[email protected]>
Reviewed-by: Danil Somsikov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1238519}
  • Loading branch information
schwering authored and Chromium LUCI CQ committed Dec 18, 2023
1 parent ebe2a20 commit 511b16a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chrome/browser/devtools/protocol/autofill_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void AutofillHandler::OnFillOrPreviewDataModelForm(
const std::string locale = "en-US";
autofill::GetAddressComponents(
base::UTF16ToUTF8(profile_used_to_fill_form->GetInfo(
autofill::ServerFieldType::ADDRESS_HOME_COUNTRY, locale)),
autofill::FieldType::ADDRESS_HOME_COUNTRY, locale)),
locale,
/*include_literals=*/false, &components, nullptr);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, SetAddresses) {
.GetPersonalDataManager()
->test_addresses();
ASSERT_EQ(res.size(), 2u);
ASSERT_EQ(res[0].GetAddress().GetRawInfo(
autofill::ServerFieldType::ADDRESS_HOME_LINE1),
u"Erika-mann");
ASSERT_EQ(res[1].GetAddress().GetRawInfo(
autofill::ServerFieldType::ADDRESS_HOME_LINE2),
u"Faria lima");
ASSERT_EQ(
res[0].GetAddress().GetRawInfo(autofill::FieldType::ADDRESS_HOME_LINE1),
u"Erika-mann");
ASSERT_EQ(
res[1].GetAddress().GetRawInfo(autofill::FieldType::ADDRESS_HOME_LINE2),
u"Faria lima");
}

IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, TriggerCreditCard) {
Expand Down

0 comments on commit 511b16a

Please sign in to comment.