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

Unified Diff: components/autofill/core/browser/autofill_external_delegate.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/core/browser/autofill_external_delegate.cc
diff --git a/components/autofill/core/browser/autofill_external_delegate.cc b/components/autofill/core/browser/autofill_external_delegate.cc
index b6a04eb24135ed1c9e9561985bc35cf90be0b20c..935a897ca67afc28b7276b133805e0bd6c8c9258 100644
--- a/components/autofill/core/browser/autofill_external_delegate.cc
+++ b/components/autofill/core/browser/autofill_external_delegate.cc
@@ -198,7 +198,7 @@ void AutofillExternalDelegate::DidAcceptSuggestion(const base::string16& value,
autofill_manager_->OnShowAutofillDialog();
} else if (identifier == WebAutofillClient::MenuItemIDClearForm) {
// User selected 'Clear form'.
- autofill_driver_->RendererShouldClearForm();
+ autofill_driver_->RendererShouldClearFilledForm();
} else if (identifier == WebAutofillClient::MenuItemIDPasswordEntry) {
bool success = password_autofill_manager_.DidAcceptAutofillSuggestion(
autofill_query_field_, value);
@@ -233,9 +233,7 @@ void AutofillExternalDelegate::DidEndTextFieldEditing() {
}
void AutofillExternalDelegate::ClearPreviewedForm() {
- RenderViewHost* host = web_contents_->GetRenderViewHost();
- if (host)
- host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));
+ autofill_driver_->RendererShouldClearPreviewedForm();
}
void AutofillExternalDelegate::Reset() {

Powered by Google App Engine
This is Rietveld 408576698