Commit d4e2ed79 authored by Maria Kazinova's avatar Maria Kazinova Committed by Commit Bot

Adding a feature and a flag for renderer IDs usage in iOS autofill.

Created a feature and a flag to experiment with using numeric renderer
IDs instead of string form and field identifiers in Autofill filling
logic.

Bug: 1075444, 1131038
Change-Id: I8a3110d3271028d5a347dbea21c6031274955e76
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2418331
Commit-Queue: Maria Kazinova <kazinova@google.com>
Reviewed-by: default avatarMatthias Körber <koerber@google.com>
Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809400}
parent 182ca718
...@@ -391,6 +391,11 @@ ...@@ -391,6 +391,11 @@
"owners": [ "fhorschig" ], "owners": [ "fhorschig" ],
"expiry_milestone": 87 "expiry_milestone": 87
}, },
{
"name": "autofill-use-renderer-ids",
"owners": [ "kazinova" ],
"expiry_milestone": 91
},
{ {
"name": "avatar-toolbar-button", "name": "avatar-toolbar-button",
"owners": [ "droger", "my-chrome-everywhere@google.com" ], "owners": [ "droger", "my-chrome-everywhere@google.com" ],
......
...@@ -362,5 +362,13 @@ bool IsAutofillCreditCardAssistEnabled() { ...@@ -362,5 +362,13 @@ bool IsAutofillCreditCardAssistEnabled() {
#endif #endif
} }
#if defined(OS_IOS)
// Controls whether or not autofill uses numeric renderer IDs instead of string
// form and field identifiers in filling logic.
// TODO(crbug/1131038): Remove once it's launched.
const base::Feature kAutofillUseUniqueRendererIDsOnIOS{
"AutofillUseUniqueRendererIDsOnIOS", base::FEATURE_DISABLED_BY_DEFAULT};
#endif
} // namespace features } // namespace features
} // namespace autofill } // namespace autofill
...@@ -102,6 +102,10 @@ bool IsAutofillCreditCardAssistEnabled(); ...@@ -102,6 +102,10 @@ bool IsAutofillCreditCardAssistEnabled();
bool IsMacViewsAutofillPopupExperimentEnabled(); bool IsMacViewsAutofillPopupExperimentEnabled();
#endif // defined(OS_APPLE) #endif // defined(OS_APPLE)
#if defined(OS_IOS)
extern const base::Feature kAutofillUseUniqueRendererIDsOnIOS;
#endif // OS_IOS
} // namespace features } // namespace features
} // namespace autofill } // namespace autofill
......
...@@ -689,6 +689,11 @@ const flags_ui::FeatureEntry kFeatureEntries[] = { ...@@ -689,6 +689,11 @@ const flags_ui::FeatureEntry kFeatureEntries[] = {
{"modern-tab-strip", flag_descriptions::kModernTabStripName, {"modern-tab-strip", flag_descriptions::kModernTabStripName,
flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos, flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kModernTabStrip)}, FEATURE_VALUE_TYPE(kModernTabStrip)},
{"autofill-use-renderer-ids",
flag_descriptions::kAutofillUseRendererIDsName,
flag_descriptions::kAutofillUseRendererIDsDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(
autofill::features::kAutofillUseUniqueRendererIDsOnIOS)},
}; };
bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) { bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
......
...@@ -126,6 +126,12 @@ const char kAutofillUseMobileLabelDisambiguationDescription[] = ...@@ -126,6 +126,12 @@ const char kAutofillUseMobileLabelDisambiguationDescription[] =
"When enabled, Autofill suggestions' labels are displayed using a " "When enabled, Autofill suggestions' labels are displayed using a "
"mobile-friendly format."; "mobile-friendly format.";
const char kAutofillUseRendererIDsName[] =
"Autofill logic uses unqiue renderer IDs";
const char kAutofillUseRendererIDsDescription[] =
"When enabled, Autofill logic uses unique numeric renderer IDs instead "
"of string form and field identifiers in form filling logic.";
const char kBlockPopupInfobarMessagesUIName[] = const char kBlockPopupInfobarMessagesUIName[] =
"Block Popup Infobars Messages UI"; "Block Popup Infobars Messages UI";
const char kBlockPopupInfobarMessagesUIDescription[] = const char kBlockPopupInfobarMessagesUIDescription[] =
......
...@@ -96,6 +96,12 @@ extern const char kAutofillRichMetadataQueriesDescription[]; ...@@ -96,6 +96,12 @@ extern const char kAutofillRichMetadataQueriesDescription[];
extern const char kAutofillUseMobileLabelDisambiguationName[]; extern const char kAutofillUseMobileLabelDisambiguationName[];
extern const char kAutofillUseMobileLabelDisambiguationDescription[]; extern const char kAutofillUseMobileLabelDisambiguationDescription[];
// Title and description for the flag that controls whether Autofill's
// logic is using numeric unique renderer IDs instead of string IDs for
// form and field elements.
extern const char kAutofillUseRendererIDsName[];
extern const char kAutofillUseRendererIDsDescription[];
// Title and description for the flag that enables Messages UI on // Title and description for the flag that enables Messages UI on
// Block Popup Infobars. // Block Popup Infobars.
extern const char kBlockPopupInfobarMessagesUIName[]; extern const char kBlockPopupInfobarMessagesUIName[];
......
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