Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: chrome/browser/resources/options/password_manager.js

Issue 107023009: Disable ability to show passwords when running in Metro. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698