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

Unified Diff: chrome/browser/resources/options/password_manager_list.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_list.js
diff --git a/chrome/browser/resources/options/password_manager_list.js b/chrome/browser/resources/options/password_manager_list.js
index fe6f004af83403ffbddb04bcbf45881bc84e749a..fa3e8f11cbcc640ab6c1b2e9f5988dafeb38f801 100644
--- a/chrome/browser/resources/options/password_manager_list.js
+++ b/chrome/browser/resources/options/password_manager_list.js
@@ -277,6 +277,16 @@ cr.define('options.passwordManager', function() {
this.redraw();
},
+ /**
+ * 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.showPasswords_ = false;
+ this.redraw();
+ },
+
/** @override */
createItem: function(entry) {
return new PasswordListItem(this.dataModel, entry, this.showPasswords_);

Powered by Google App Engine
This is Rietveld 408576698