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

Unified Diff: components/autofill/content/renderer/form_autofill_util.cc

Issue 704133006: Cleanup: Remove FormWithElementIsAutofilled(). It's not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « components/autofill/content/renderer/form_autofill_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/form_autofill_util.cc
diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc
index 88694a72f8f43f7f928e2abbb1bf476a2604f6f9..5e831d0416b6eb44baa836d18be36c03237a98f9 100644
--- a/components/autofill/content/renderer/form_autofill_util.cc
+++ b/components/autofill/content/renderer/form_autofill_util.cc
@@ -1095,7 +1095,7 @@ bool ClearPreviewedFormWithElement(const WebFormControlElement& element,
// If the element is not auto-filled, we did not preview it,
// so there is nothing to reset.
- if(!control_element.isAutofilled())
+ if (!control_element.isAutofilled())
continue;
if ((IsTextInput(input_element) ||
@@ -1130,26 +1130,6 @@ bool ClearPreviewedFormWithElement(const WebFormControlElement& element,
return true;
}
-bool FormWithElementIsAutofilled(const WebInputElement& element) {
- WebFormElement form_element = element.form();
- if (form_element.isNull())
- return false;
-
- std::vector<WebFormControlElement> control_elements;
- ExtractAutofillableElements(
- form_element, ExtractionRequirements(), &control_elements);
- for (size_t i = 0; i < control_elements.size(); ++i) {
- WebInputElement* input_element = toWebInputElement(&control_elements[i]);
- if (!IsAutofillableInputElement(input_element))
- continue;
-
- if (input_element->isAutofilled())
- return true;
- }
-
- return false;
-}
-
bool IsWebpageEmpty(const blink::WebFrame* frame) {
blink::WebDocument document = frame->document();
« no previous file with comments | « components/autofill/content/renderer/form_autofill_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698