Skip to content

Commit

Permalink
[ios] Hides edit icon for non editable field on Infobar Password Modal.
Browse files Browse the repository at this point in the history
Bug: 1021531
Change-Id: Iac64878763510d21b19b77d3c69e178cd3b597be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899799
Reviewed-by: Chris Lu <thegreenfrog@chromium.org>
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713053}
  • Loading branch information
sczs authored and Commit Bot committed Nov 6, 2019
1 parent b6f9f70 commit 595a91a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ - (void)loadModel {
URLItem.textFieldName =
l10n_util::GetNSString(IDS_IOS_SHOW_PASSWORD_VIEW_SITE);
URLItem.textFieldValue = self.URL;
URLItem.hideIcon = YES;
[model addItem:URLItem toSectionWithIdentifier:SectionIdentifierContent];

self.originalUsername = self.username;
Expand All @@ -174,6 +175,7 @@ - (void)loadModel {
self.passwordItem.identifyingIcon =
[UIImage imageNamed:@"infobar_reveal_password_icon"];
self.passwordItem.identifyingIconEnabled = YES;
self.passwordItem.hideIcon = YES;
self.passwordItem.identifyingIconAccessibilityLabel = l10n_util::GetNSString(
IDS_IOS_INFOBAR_MODAL_PASSWORD_REVEAL_PASSWORD_HINT);
[model addItem:self.passwordItem
Expand Down

0 comments on commit 595a91a

Please sign in to comment.