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

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

Issue 223133003: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed problems in previous patch Created 6 years, 8 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/content_autofill_driver.cc
diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc
index 93e44550154d6cc659377e42b9ed2e2a96007155..73d02e7f0ea390da5dff308f281404e0fa9603a5 100644
--- a/components/autofill/content/browser/content_autofill_driver.cc
+++ b/components/autofill/content/browser/content_autofill_driver.cc
@@ -124,6 +124,16 @@ void ContentAutofillDriver::SendAutofillTypePredictionsToRenderer(
type_predictions));
}
+void ContentAutofillDriver::RemovePasswordAutofillSuggestion(
+ const base::string16& username_to_remove) {
+ content::RenderViewHost* host = web_contents()->GetRenderViewHost();
+ if (!host)
+ return;
+
+ autofill_manager_->set_username_to_remove(username_to_remove);
+ host->Send(new AutofillMsg_RemoveSavedPassword(host->GetRoutingID()));
+}
+
void ContentAutofillDriver::RendererShouldAcceptDataListSuggestion(
const base::string16& value) {
if (!RendererIsAvailable())

Powered by Google App Engine
This is Rietveld 408576698