Commit ef79968c authored by Javier Ernesto Flores Robles's avatar Javier Ernesto Flores Robles Committed by Commit Bot

[iOS] Adds Face ID usage key

Adds iOS usage key for face ID to the plist file.

Bug: 889430
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: I75aaeb919f6d68c105e8a7711c5d0ca1a70aec3d
Reviewed-on: https://chromium-review.googlesource.com/1245371
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Reviewed-by: default avatarEric Noyau <noyau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595432}
parent 768f08a9
...@@ -189,5 +189,7 @@ ...@@ -189,5 +189,7 @@
<string>IDS_IOS_PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION</string> <string>IDS_IOS_PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION</string>
<key>NSBluetoothPeripheralUsageDescription</key> <key>NSBluetoothPeripheralUsageDescription</key>
<string>IDS_IOS_BLUETOOTH_USAGE_DESCRIPTION</string> <string>IDS_IOS_BLUETOOTH_USAGE_DESCRIPTION</string>
<key>NSFaceIDUsageDescription</key>
<string>IDS_IOS_FACE_ID_USAGE_DESCRIPTION</string>
</dict> </dict>
</plist> </plist>
...@@ -64,7 +64,12 @@ ...@@ -64,7 +64,12 @@
<key>output</key> <key>output</key>
<string>NSPhotoLibraryAddUsageDescription</string> <string>NSPhotoLibraryAddUsageDescription</string>
</dict> </dict>
<dict>
<key>input</key>
<string>IDS_IOS_FACE_ID_USAGE_DESCRIPTION</string>
<key>output</key>
<string>NSFaceIDUsageDescription</string>
</dict>
<string>IDS_IOS_APPLICATION_SHORTCUT_NEWTAB_TITLE</string> <string>IDS_IOS_APPLICATION_SHORTCUT_NEWTAB_TITLE</string>
<string>IDS_IOS_APPLICATION_SHORTCUT_NEWINCOGNITOTAB_TITLE</string> <string>IDS_IOS_APPLICATION_SHORTCUT_NEWINCOGNITOTAB_TITLE</string>
<string>IDS_IOS_APPLICATION_SHORTCUT_VOICE_SEARCH_TITLE</string> <string>IDS_IOS_APPLICATION_SHORTCUT_VOICE_SEARCH_TITLE</string>
......
...@@ -174,6 +174,9 @@ locale. The strings in this file are specific to iOS. ...@@ -174,6 +174,9 @@ locale. The strings in this file are specific to iOS.
<message name="IDS_IOS_DISCONNECT_DIALOG_TITLE" desc="The title of the disconnect dialog [Length: 30em]."> <message name="IDS_IOS_DISCONNECT_DIALOG_TITLE" desc="The title of the disconnect dialog [Length: 30em].">
Sign out of Chromium? Sign out of Chromium?
</message> </message>
<message name="IDS_IOS_FACE_ID_USAGE_DESCRIPTION" desc="Specifies the reason for using the device's Face ID capabilities.">
Chromium uses Face ID to ensure authorized access to your passwords.
</message>
<message name="IDS_IOS_FIRSTRUN_AGREE_TO_TERMS" desc="Label containing a link to the Terms of Service and Privacy Notice, displayed in the first run flow. [Length: 117em] [iOS only]"> <message name="IDS_IOS_FIRSTRUN_AGREE_TO_TERMS" desc="Label containing a link to the Terms of Service and Privacy Notice, displayed in the first run flow. [Length: 117em] [iOS only]">
By using this application, you agree to Chromium’s <ph name="BEGIN_LINK_TOS">BEGIN_LINK_TOS</ph>Terms of Service<ph name="END_LINK_TOS">END_LINK_TOS</ph> and <ph name="BEGIN_LINK_PRIVACY">BEGIN_LINK_PRIVACY</ph>Privacy Notice<ph name="END_LINK_PRIVACY">END_LINK_PRIVACY</ph>. By using this application, you agree to Chromium’s <ph name="BEGIN_LINK_TOS">BEGIN_LINK_TOS</ph>Terms of Service<ph name="END_LINK_TOS">END_LINK_TOS</ph> and <ph name="BEGIN_LINK_PRIVACY">BEGIN_LINK_PRIVACY</ph>Privacy Notice<ph name="END_LINK_PRIVACY">END_LINK_PRIVACY</ph>.
</message> </message>
......
...@@ -174,6 +174,9 @@ locale. The strings in this file are specific to iOS. ...@@ -174,6 +174,9 @@ locale. The strings in this file are specific to iOS.
<message name="IDS_IOS_DISCONNECT_DIALOG_TITLE" desc="The title of the disconnect dialog [Length: 30em]."> <message name="IDS_IOS_DISCONNECT_DIALOG_TITLE" desc="The title of the disconnect dialog [Length: 30em].">
Sign out of Chrome? Sign out of Chrome?
</message> </message>
<message name="IDS_IOS_FACE_ID_USAGE_DESCRIPTION" desc="Specifies the reason for using the device's Face ID capabilities.">
Chrome uses Face ID to ensure authorized access to your passwords.
</message>
<message name="IDS_IOS_FIRSTRUN_AGREE_TO_TERMS" desc="Label containing a link to the Terms of Service and Privacy Notice, displayed in the first run flow. [Length: 117em] [iOS only]"> <message name="IDS_IOS_FIRSTRUN_AGREE_TO_TERMS" desc="Label containing a link to the Terms of Service and Privacy Notice, displayed in the first run flow. [Length: 117em] [iOS only]">
By using this application, you agree to Chrome’s <ph name="BEGIN_LINK_TOS">BEGIN_LINK_TOS</ph>Terms of Service<ph name="END_LINK_TOS">END_LINK_TOS</ph> and <ph name="BEGIN_LINK_PRIVACY">BEGIN_LINK_PRIVACY</ph>Privacy Notice<ph name="END_LINK_PRIVACY">END_LINK_PRIVACY</ph>. By using this application, you agree to Chrome’s <ph name="BEGIN_LINK_TOS">BEGIN_LINK_TOS</ph>Terms of Service<ph name="END_LINK_TOS">END_LINK_TOS</ph> and <ph name="BEGIN_LINK_PRIVACY">BEGIN_LINK_PRIVACY</ph>Privacy Notice<ph name="END_LINK_PRIVACY">END_LINK_PRIVACY</ph>.
</message> </message>
......
...@@ -41,7 +41,7 @@ constexpr char kPasscodeArticleURL[] = "https://support.apple.com/HT204060"; ...@@ -41,7 +41,7 @@ constexpr char kPasscodeArticleURL[] = "https://support.apple.com/HT204060";
- (BOOL)canAttemptReauth { - (BOOL)canAttemptReauth {
LAContext* context = _createLAContext(); LAContext* context = _createLAContext();
// The authentication method is Touch ID or passcode. // The authentication method is Touch ID, Face ID or passcode.
return return
[context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:nil]; [context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:nil];
} }
......
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