From 940e621e882a1fc0ddf641d8b3ed35f75d1b5cd0 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Fri, 6 Aug 2010 01:34:34 +0000 Subject: AutoFill: Remove one level of indirection when clearing a previewed form. BUG=48857 TEST=none Review URL: http://codereview.chromium.org/3029061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55173 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/form_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/renderer/form_manager.cc') diff --git a/chrome/renderer/form_manager.cc b/chrome/renderer/form_manager.cc index ffe43bf..048f347 100644 --- a/chrome/renderer/form_manager.cc +++ b/chrome/renderer/form_manager.cc @@ -618,9 +618,9 @@ bool FormManager::ClearFormWithNode(const WebKit::WebNode& node) { return true; } -bool FormManager::ClearPreviewedForm(const FormData& form) { +bool FormManager::ClearPreviewedFormWithNode(const WebKit::WebNode& node) { FormElement* form_element = NULL; - if (!FindCachedFormElement(form, &form_element)) + if (!FindCachedFormElementWithNode(node, &form_element)) return false; for (size_t i = 0; i < form_element->control_elements.size(); ++i) { -- cgit v1.1