[iOS][CPE] Add strings and asset for enterprise disabled view
Fixed: 362719658 Change-Id: I2b13a4b2d598f881475f2334160840c70523a27a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5999537 Reviewed-by: Alexis Hétu <sugoi@chromium.org> Commit-Queue: Rafał Godlewski <rgod@google.com> Cr-Commit-Position: refs/heads/main@{#1379767}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
f1f4cebcc1
commit
da6b300a12
ios/chrome/credential_provider_extension
credential_provider_extension_localize_strings_config.plist
strings
ios_credential_provider_extension_strings.grd
ios_credential_provider_extension_strings_grd
ui
resources
saving_enterprise_disabled_view_controller.mm
2
ios/chrome/credential_provider_extension/credential_provider_extension_localize_strings_config.plist
2
ios/chrome/credential_provider_extension/credential_provider_extension_localize_strings_config.plist
@ -58,6 +58,8 @@
|
||||
<string>IDS_IOS_CREDENTIAL_PROVIDER_NEW_PASSWORD_USERNAME_PLACEHOLDER</string>
|
||||
<string>IDS_IOS_CREDENTIAL_PROVIDER_NO_SEARCH_RESULTS</string>
|
||||
<string>IDS_IOS_CREDENTIAL_PROVIDER_NOTE</string>
|
||||
<string>IDS_IOS_CREDENTIAL_PROVIDER_PASSKEY_CREATION_ENTERPRISE_DISABLED_SUBTITLE</string>
|
||||
<string>IDS_IOS_CREDENTIAL_PROVIDER_PASSKEY_CREATION_ENTERPRISE_DISABLED_TITLE</string>
|
||||
<string>IDS_IOS_CREDENTIAL_PROVIDER_SIGNED_OUT_USER_TITLE</string>
|
||||
<string>IDS_IOS_CREDENTIAL_PROVIDER_SIGNED_OUT_USER_SUBTITLE</string>
|
||||
<string>IDS_IOS_CREDENTIAL_PROVIDER_STALE_CREDENTIALS_SUBTITLE</string>
|
||||
|
@ -325,6 +325,12 @@ all other OS specific variables will be false.
|
||||
<message name="IDS_IOS_CREDENTIAL_PROVIDER_NOTE" desc="Title for row to type in or display a note for a credential">
|
||||
Note
|
||||
</message>
|
||||
<message name="IDS_IOS_CREDENTIAL_PROVIDER_PASSKEY_CREATION_ENTERPRISE_DISABLED_SUBTITLE" desc="Description of the screen informing the user that passkey creation is disabled by an enterprise policy.">
|
||||
To maintain security, your organization doesn't allow creating passkeys with Chrome
|
||||
</message>
|
||||
<message name="IDS_IOS_CREDENTIAL_PROVIDER_PASSKEY_CREATION_ENTERPRISE_DISABLED_TITLE" desc="Title for the screen informing the user that passkey creation is disabled by an enterprise policy.">
|
||||
Passkeys are turned off by your organization
|
||||
</message>
|
||||
<message name="IDS_IOS_CREDENTIAL_PROVIDER_SIGNED_OUT_USER_SUBTITLE" desc="Subtitle for signed out user screen." meaning="Subtitle to show when a user is signed out, and passkeys are unavailable">
|
||||
Passkeys get saved in Google Password Manager
|
||||
</message>
|
||||
|
@ -0,0 +1 @@
|
||||
f1086cce96c6df80e7c5b31c60e39caf72bc39ba
|
@ -0,0 +1 @@
|
||||
f1086cce96c6df80e7c5b31c60e39caf72bc39ba
|
18
ios/chrome/credential_provider_extension/ui/resources/Assets.xcassets/cpe_enterprise_icon.imageset/Contents.json
vendored
Normal file
18
ios/chrome/credential_provider_extension/ui/resources/Assets.xcassets/cpe_enterprise_icon.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "cpe_enterprise_icon@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "cpe_enterprise_icon@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
BIN
ios/chrome/credential_provider_extension/ui/resources/Assets.xcassets/cpe_enterprise_icon.imageset/cpe_enterprise_icon@2x.png
vendored
Normal file
BIN
ios/chrome/credential_provider_extension/ui/resources/Assets.xcassets/cpe_enterprise_icon.imageset/cpe_enterprise_icon@2x.png
vendored
Normal file
Binary file not shown.
After ![]() (image error) Size: 16 KiB |
BIN
ios/chrome/credential_provider_extension/ui/resources/Assets.xcassets/cpe_enterprise_icon.imageset/cpe_enterprise_icon@3x.png
vendored
Normal file
BIN
ios/chrome/credential_provider_extension/ui/resources/Assets.xcassets/cpe_enterprise_icon.imageset/cpe_enterprise_icon@3x.png
vendored
Normal file
Binary file not shown.
After ![]() (image error) Size: 32 KiB |
@ -13,6 +13,9 @@ bundle_data_xcassets("resources") {
|
||||
"Assets.xcassets/consent_view_controller.imageset/promo_passwords_in_other_apps@3x.png",
|
||||
"Assets.xcassets/consent_view_controller.imageset/promo_passwords_in_other_apps_dark@2x.png",
|
||||
"Assets.xcassets/consent_view_controller.imageset/promo_passwords_in_other_apps_dark@3x.png",
|
||||
"Assets.xcassets/cpe_enterprise_icon.imageset/Contents.json",
|
||||
"Assets.xcassets/cpe_enterprise_icon.imageset/cpe_enterprise_icon@2x.png",
|
||||
"Assets.xcassets/cpe_enterprise_icon.imageset/cpe_enterprise_icon@3x.png",
|
||||
"Assets.xcassets/empty_credentials_illustration.imageset/Contents.json",
|
||||
"Assets.xcassets/empty_credentials_illustration.imageset/illustration_dark@2x.png",
|
||||
"Assets.xcassets/empty_credentials_illustration.imageset/illustration_dark@3x.png",
|
||||
|
@ -4,19 +4,33 @@
|
||||
|
||||
#import "ios/chrome/credential_provider_extension/ui/saving_enterprise_disabled_view_controller.h"
|
||||
|
||||
namespace {
|
||||
|
||||
// Point size of the enterprise icon.
|
||||
const CGFloat kIconPointSize = 60.0;
|
||||
|
||||
} // namespace
|
||||
|
||||
@implementation SavingEnterpriseDisabledViewController
|
||||
|
||||
#pragma mark - UIViewController
|
||||
|
||||
- (void)loadView {
|
||||
// TODO(crbug.com/362719658): Add correct image and strings.
|
||||
self.image = [UIImage imageNamed:@"empty_credentials_illustration"];
|
||||
self.titleString =
|
||||
NSLocalizedString(@"IDS_IOS_CREDENTIAL_PROVIDER_STALE_CREDENTIALS_TITLE",
|
||||
@"The title in the stale credentials screen.");
|
||||
self.image = [UIImage imageNamed:@"cpe_enterprise_icon"
|
||||
inBundle:nil
|
||||
withConfiguration:
|
||||
[UIImageSymbolConfiguration
|
||||
configurationWithPointSize:kIconPointSize
|
||||
weight:UIImageSymbolWeightMedium
|
||||
scale:UIImageSymbolScaleMedium]];
|
||||
self.imageHasFixedSize = YES;
|
||||
self.titleString = NSLocalizedString(
|
||||
@"IDS_IOS_CREDENTIAL_PROVIDER_PASSKEY_CREATION_ENTERPRISE_DISABLED_TITLE",
|
||||
@"The title in the passkey creation enterprise disabled screen.");
|
||||
self.subtitleString = NSLocalizedString(
|
||||
@"IDS_IOS_CREDENTIAL_PROVIDER_STALE_CREDENTIALS_SUBTITLE",
|
||||
@"The subtitle in the stale credentials screen.");
|
||||
@"IDS_IOS_CREDENTIAL_PROVIDER_PASSKEY_CREATION_"
|
||||
@"ENTERPRISE_DISABLED_SUBTITLE",
|
||||
@"The subtitle in the passkey creation enterprise disabled screen.");
|
||||
[super loadView];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user