Index: chrome/browser/resources/options/password_manager.js |
diff --git a/chrome/browser/resources/options/password_manager.js b/chrome/browser/resources/options/password_manager.js |
index 53021e1ba973dcb31f5c10b44f7c72587aa48fb9..3006ac63fdda783a200fe369d8b7b25485d59991 100644 |
--- a/chrome/browser/resources/options/password_manager.js |
+++ b/chrome/browser/resources/options/password_manager.js |
@@ -184,6 +184,15 @@ cr.define('options', function() { |
}, |
/** |
+ * Removes the show password button. This is called by the backend when |
+ * we are running in an environment that does not support showing |
+ * passwords, such as Windows Metro |
+ */ |
+ disableShowPassword_: function() { |
+ this.savedPasswordsList_.disableShowPassword(); |
+ }, |
+ |
+ /** |
* Reveals the password for a saved password entry. This is called by the |
* backend after it has authenticated the user. |
* @param {number} index The original index of the entry in the model. |
@@ -233,7 +242,8 @@ cr.define('options', function() { |
[ |
'setSavedPasswordsList', |
'setPasswordExceptionsList', |
- 'showPassword' |
+ 'showPassword', |
+ 'disableShowPassword' |
].forEach(function(name) { |
PasswordManager[name] = function() { |
var instance = PasswordManager.getInstance(); |