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

Unified Diff: components/autofill/core/browser/password_autofill_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: Created 6 years, 11 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: components/autofill/core/browser/password_autofill_manager.h
diff --git a/components/autofill/core/browser/password_autofill_manager.h b/components/autofill/core/browser/password_autofill_manager.h
index ddde78eb0faa337f9a1ef49f98af8daca681e231..37d16f4b128e51ec27bb480c93e41b1b1d0ee599 100644
--- a/components/autofill/core/browser/password_autofill_manager.h
+++ b/components/autofill/core/browser/password_autofill_manager.h
@@ -16,6 +16,10 @@
#include "components/autofill/core/common/password_form_fill_data.h"
+namespace blink {
+class WebFormElement;
+}
+
namespace autofill {
class AutofillDriver;
@@ -36,6 +40,12 @@ class PasswordAutofillManager {
const FormFieldData& username_element,
const PasswordFormFillData& password);
+ // Clear the user name and the password associated with the form |form|.
+ // Returns true if the user name and password were removed.
+ bool RemovePasswordSuggestion(
+ const FormFieldData& field,
+ const blink::WebFormElement& form);
+
// Invoked to clear any page specific cached values.
void Reset();
@@ -69,4 +79,4 @@ class PasswordAutofillManager {
} // namespace autofill
-#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698