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

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: change to use localized strings instead 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..9442dee28a5c1afe69d9a4f7fb7e3c3dc0bedfd8 100644
--- a/chrome/browser/resources/options/password_manager_list.js
+++ b/chrome/browser/resources/options/password_manager_list.js
@@ -279,7 +279,12 @@ cr.define('options.passwordManager', function() {
/** @override */
createItem: function(entry) {
- return new PasswordListItem(this.dataModel, entry, this.showPasswords_);
+ var showPasswords = this.showPasswords_;
+
+ if (loadTimeData.getBoolean('disableShowPasswords'))
Patrick Dubroy 2013/12/13 14:19:10 Can't you just initialize this.showPasswords_ with
+ showPasswords = false;
+
+ return new PasswordListItem(this.dataModel, entry, showPasswords);
},
/** @override */

Powered by Google App Engine
This is Rietveld 408576698