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

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

Issue 18693005: Move AutofillMsg_ClearPreviewedForm IPC send to AutofillDriverImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 7 years, 5 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 e56f94768cdc7fbb5be47789afe601732491eeb4..d8da58abb182a2fdecda021a19f6f170c77c2751 100644
--- a/components/autofill/content/browser/autofill_driver_impl.cc
+++ b/components/autofill/content/browser/autofill_driver_impl.cc
@@ -133,13 +133,20 @@ void AutofillDriverImpl::SendAutofillTypePredictionsToRenderer(
type_predictions));
}
-void AutofillDriverImpl::RendererShouldClearForm() {
+void AutofillDriverImpl::RendererShouldClearFilledForm() {
if (!RendererIsAvailable())
return;
content::RenderViewHost* host = web_contents()->GetRenderViewHost();
host->Send(new AutofillMsg_ClearForm(host->GetRoutingID()));
}
+void AutofillDriverImpl::RendererShouldClearPreviewedForm() {
+ if (!RendererIsAvailable())
+ return;
+ content::RenderViewHost* host = web_contents()->GetRenderViewHost();
+ host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));
+}
+
bool AutofillDriverImpl::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(AutofillDriverImpl, message)

Powered by Google App Engine
This is Rietveld 408576698