Skip to content

Commit

Permalink
[iOS] Create feature flag for Password Bottom Sheet
Browse files Browse the repository at this point in the history
Bug: 1422318
Change-Id: I0b64ccb06d46012b8efbf8aceaecb7dda9a19296
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4317344
Reviewed-by: Tommy Martino <tmartino@chromium.org>
Commit-Queue: Veronique Nguyen <veronguyen@google.com>
Cr-Commit-Position: refs/heads/main@{#1114819}
  • Loading branch information
Veronique Nguyen authored and Chromium LUCI CQ committed Mar 8, 2023
1 parent b0adf53 commit c3d7db5
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chrome/browser/flag-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4435,6 +4435,11 @@
"owners": ["bwwilliams", "guiperez", "bling-flags@google.com"],
"expiry_milestone": 120
},
{
"name": "ios-password-bottom-sheet",
"owners": ["veronguyen", "sugoi", "tmartino", "bling-integrations-team@google.com"],
"expiry_milestone": 117
},
{
"name": "ios-password-checkup",
"owners": ["noemies", "eic", "bling-integrations-team@google.com"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ BASE_FEATURE(kIOSPasswordCheckup,
BASE_FEATURE(kIOSShowPasswordStorageInSaveInfobar,
"IOSShowPasswordStorageInSaveInfobar",
base::FEATURE_DISABLED_BY_DEFAULT);

// Enables password bottom sheet to be displayed (on iOS) when a user is
// signed-in and taps on a username or password field on a website that has at
// least one credential saved in their password manager.
BASE_FEATURE(kIOSPasswordBottomSheet,
"IOSPasswordBottomSheet",
base::FEATURE_DISABLED_BY_DEFAULT);
#endif // IS_IOS

// Enables memory mapping the word lists used in the zxcvbn library employed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ BASE_DECLARE_FEATURE(kIOSPasswordUISplit);
BASE_DECLARE_FEATURE(kIOSPasswordManagerCrossOriginIframeSupport);
BASE_DECLARE_FEATURE(kIOSPasswordCheckup);
BASE_DECLARE_FEATURE(kIOSShowPasswordStorageInSaveInfobar);
BASE_DECLARE_FEATURE(kIOSPasswordBottomSheet);
#endif // IS_IOS
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS) // Desktop
BASE_DECLARE_FEATURE(kMemoryMapWeaknessCheckDictionaries);
Expand Down
4 changes: 4 additions & 0 deletions ios/chrome/browser/flags/about_flags.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,10 @@
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(password_manager::features::
kIOSPasswordManagerCrossOriginIframeSupport)},
{"ios-password-bottom-sheet",
flag_descriptions::kIOSPasswordBottomSheetName,
flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)},
{"ios-new-tab-page-retention", flag_descriptions::kNewTabPageRetentionName,
flag_descriptions::kNewTabPageRetentionDescription, flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(ntp_tiles::kNewTabPageRetention,
Expand Down
4 changes: 4 additions & 0 deletions ios/chrome/browser/flags/ios_chrome_flag_descriptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ const char kIOSPasswordManagerCrossOriginIframeSupportName[] =
const char kIOSPasswordManagerCrossOriginIframeSupportDescription[] =
"Enables password saving and filling in cross-origin iframes on IOS.";

const char kIOSPasswordBottomSheetName[] = "IOS Password Manager Bottom Sheet";
const char kIOSPasswordBottomSheetDescription[] =
"Enables the display of the password bottom sheet on IOS.";

const char kNewTabPageRetentionName[] =
"New tab page features that target new users";
const char kNewTabPageRetentionDescription[] =
Expand Down
4 changes: 4 additions & 0 deletions ios/chrome/browser/flags/ios_chrome_flag_descriptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,10 @@ extern const char kIOSPasswordUISplitDescription[];
extern const char kIOSPasswordManagerCrossOriginIframeSupportName[];
extern const char kIOSPasswordManagerCrossOriginIframeSupportDescription[];

// Title and description for the flag to enable password bottom sheet on IOS.
extern const char kIOSPasswordBottomSheetName[];
extern const char kIOSPasswordBottomSheetDescription[];

// Title and description of the flag to enable client side new tab page
// experiments aimed at improving user retention.
extern const char kNewTabPageRetentionName[];
Expand Down
15 changes: 15 additions & 0 deletions testing/variations/fieldtrial_testing_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6452,6 +6452,21 @@
]
}
],
"IOSPasswordBottomSheet": [
{
"platforms": [
"ios"
],
"experiments": [
{
"name": "Enabled",
"enable_features": [
"IOSPasswordBottomSheet"
]
}
]
}
],
"IOSPasswordManagerCrossOriginIframeSupport": [
{
"platforms": [
Expand Down

0 comments on commit c3d7db5

Please sign in to comment.