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

Unified Diff: chrome/browser/password_manager/password_form_manager.h

Issue 133893004: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaning the code Created 6 years, 10 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/password_manager/password_form_manager.h
diff --git a/chrome/browser/password_manager/password_form_manager.h b/chrome/browser/password_manager/password_form_manager.h
index 53fbe747f4798e22830b746f81e4d63aec3d5356..11524c47878282cd754c3c052ccbe8905cb41b27 100644
--- a/chrome/browser/password_manager/password_form_manager.h
+++ b/chrome/browser/password_manager/password_form_manager.h
@@ -93,9 +93,11 @@ class PasswordFormManager : public PasswordStoreConsumer {
bool HasGeneratedPassword();
void SetHasGeneratedPassword();
+ void RemoveAndUpdate(const string16& to_remove_username);
+ void Update(const string16& username_to_remove);
+
// Determines if we need to autofill given the results of the query.
void OnRequestDone(const std::vector<autofill::PasswordForm*>& result);
vabr (Chromium) 2014/03/07 23:43:36 nit: please return the blank line below
riadh.chtara 2014/03/14 17:16:08 Done.
-
// PasswordStoreConsumer implementation.
virtual void OnPasswordStoreRequestDone(
CancelableRequestProvider::Handle handle,
@@ -268,6 +270,10 @@ class PasswordFormManager : public PasswordStoreConsumer {
// Whether this form has an auto generated password.
bool has_generated_password_;
+ bool remover_;
vabr (Chromium) 2014/03/07 23:43:36 What about getting rid of |remover_|, and using us
riadh.chtara 2014/03/14 17:16:08 Done.
+ bool only_update_;
+ string16 username_to_remove_;
+
// Set if the user has selected one of the other possible usernames in
// |pending_credentials_|.
string16 selected_username_;

Powered by Google App Engine
This is Rietveld 408576698