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

Unified Diff: components/autofill/content/browser/autofill_driver_impl.cc

Issue 133893004: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 6 years, 9 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/content/browser/autofill_driver_impl.cc
diff --git a/components/autofill/content/browser/autofill_driver_impl.cc b/components/autofill/content/browser/autofill_driver_impl.cc
index ab30c8d66e4f3b5f0f47c0596856ab3c2c4c7498..cc053714fa65b57fc640b288dc6d261928d65878 100644
--- a/components/autofill/content/browser/autofill_driver_impl.cc
+++ b/components/autofill/content/browser/autofill_driver_impl.cc
@@ -123,6 +123,16 @@ void AutofillDriverImpl::SendAutofillTypePredictionsToRenderer(
type_predictions));
}
+void AutofillDriverImpl::RemovePasswordAutofillSuggestion(
+ const PasswordForm& password_form) {
+ content::RenderViewHost* host = GetWebContents()->GetRenderViewHost();
vabr (Chromium) 2014/04/01 16:56:08 nit: for consistency with the rest of the file, co
rchtara 2014/04/03 08:44:50 Done.
+ if (!host)
+ return;
+
+ host->Send(new AutofillMsg_RemovePasswordSuggestion(host->GetRoutingID(),
+ password_form));
+}
+
void AutofillDriverImpl::RendererShouldAcceptDataListSuggestion(
const base::string16& value) {
if (!RendererIsAvailable())

Powered by Google App Engine
This is Rietveld 408576698