summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/settings/autofill_page/password_list_item.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/settings/autofill_page/password_list_item.js')
-rw-r--r--chromium/chrome/browser/resources/settings/autofill_page/password_list_item.js51
1 files changed, 0 insertions, 51 deletions
diff --git a/chromium/chrome/browser/resources/settings/autofill_page/password_list_item.js b/chromium/chrome/browser/resources/settings/autofill_page/password_list_item.js
deleted file mode 100644
index 12c176fd932..00000000000
--- a/chromium/chrome/browser/resources/settings/autofill_page/password_list_item.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview PasswordListItem represents one row in the list of passwords.
- * It needs to be its own component because FocusRowBehavior provides good a11y.
- */
-
-Polymer({
- is: 'password-list-item',
-
- behaviors: [
- cr.ui.FocusRowBehavior,
- ShowPasswordBehavior,
- ],
-
- /**
- * Selects the password on tap if revealed.
- * @private
- */
- onReadonlyInputTap_: function() {
- if (this.item.password) {
- this.$$('#password').select();
- }
- },
-
- /**
- * Opens the password action menu.
- * @private
- */
- onPasswordMenuTap_: function() {
- this.fire(
- 'password-menu-tap', {target: this.$.passwordMenu, listItem: this});
- },
-
- /**
- * Get the aria label for the More Actions button on this row.
- * @param {!PasswordManagerProxy.UiEntryWithPassword} item This row's item.
- * @private
- */
- getMoreActionsLabel_: function(item) {
- // Avoid using I18nBehavior.i18n, because it will filter sequences, which
- // are otherwise not illegal for usernames. Polymer still protects against
- // XSS injection.
- return loadTimeData.getStringF(
- (item.entry.federationText) ? 'passwordRowFederatedMoreActionsButton' :
- 'passwordRowMoreActionsButton',
- item.entry.username, item.entry.urls.shown);
- },
-});