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

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter.h

Issue 489103004: Allow editing passwords in settings/passwords (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 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/ui/passwords/password_manager_presenter.h
diff --git a/chrome/browser/ui/passwords/password_manager_presenter.h b/chrome/browser/ui/passwords/password_manager_presenter.h
index 66c68462967c25cc4689f18f2bad21fa34f7e568..df96a34aea68db319e34414fa2fcf9b9e9639633 100644
--- a/chrome/browser/ui/passwords/password_manager_presenter.h
+++ b/chrome/browser/ui/passwords/password_manager_presenter.h
@@ -46,6 +46,20 @@ class PasswordManagerPresenter
// Gets the password exception entry at |index|.
const autofill::PasswordForm* GetPasswordException(size_t index);
+ // Checks if |origin| is valid for adding a new password entry.
+ static bool CheckOriginValidityForAdding(const GURL& origin);
Dan Beam 2014/09/11 05:17:58 nit: move static method right under ctor
jaekyeom 2014/09/12 10:35:58 Done.
+
+ // Adds a new password entry with |origin|, |username_value|, and
+ // |password_value|. |origin| should have been validated by
Dan Beam 2014/09/11 05:17:58 nit: 1 \s between sentences
jaekyeom 2014/09/12 10:35:58 Done.
+ // CheckOriginValidityForAdding, and |password_value| should be non-empty.
+ void AddPassword(const GURL& origin,
+ const base::string16& username_value,
+ const base::string16& password_value);
+
+ // Updates the entry at |index| with |password_value|. |password_value|
+ // should be non-empty.
+ void UpdatePassword(size_t index, const base::string16& password_value);
+
// Removes the saved password entry at |index|.
// |index| the entry index to be removed.
void RemoveSavedPassword(size_t index);

Powered by Google App Engine
This is Rietveld 408576698