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

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

Issue 489103004: Allow editing passwords in settings/passwords (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months 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 4758254538cf243d93e99601941836210b30514d..b7e977f2e6d9361b9ece96a33d4bcb6c3a606693 100644
--- a/chrome/browser/resources/options/password_manager.js
+++ b/chrome/browser/resources/options/password_manager.js
@@ -211,6 +211,15 @@ cr.define('options', function() {
};
/**
+ * Updates the password value of an entry.
+ * @param {number} rowIndex The row to update.
+ * @param {string} newPassword The new password value.
+ */
+ PasswordManager.updatePassword = function(rowIndex, newPassword) {
+ chrome.send('updatePassword', [String(rowIndex), newPassword]);
+ };
+
+ /**
* Removes a saved password.
* @param {number} rowIndex indicating the row to remove.
*/

Powered by Google App Engine
This is Rietveld 408576698