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

Unified Diff: chrome/renderer/form_manager.cc

Issue 4985003: Revert 66214 - Display a warning when autofill is disabled for a website.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | « chrome/renderer/autofill_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/form_manager.cc
===================================================================
--- chrome/renderer/form_manager.cc (revision 66219)
+++ chrome/renderer/form_manager.cc (working copy)
@@ -489,14 +489,14 @@
frame->forms(web_forms);
for (size_t i = 0; i < web_forms.size(); ++i) {
- FormElement* form_element = new FormElement;
- form_element->form_element = web_forms[i];
+ FormElement* form_elements = new FormElement;
+ form_elements->form_element = web_forms[i];
WebVector<WebFormControlElement> control_elements;
- form_element->form_element.getFormControlElements(control_elements);
+ form_elements->form_element.getFormControlElements(control_elements);
for (size_t j = 0; j < control_elements.size(); ++j) {
WebFormControlElement element = control_elements[j];
- form_element->control_elements.push_back(element);
+ form_elements->control_elements.push_back(element);
// Save original values of "select-one" inputs so we can restore them
// when |ClearFormWithNode()| is invoked.
@@ -504,13 +504,13 @@
WebFormControlElement& e = const_cast<WebFormControlElement&>(element);
WebSelectElement select_element = e.to<WebSelectElement>();
string16 value = select_element.value();
- form_element->control_values.push_back(value);
+ form_elements->control_values.push_back(value);
} else {
- form_element->control_values.push_back(string16());
+ form_elements->control_values.push_back(string16());
}
}
- form_elements_.push_back(form_element);
+ form_elements_.push_back(form_elements);
}
}
« no previous file with comments | « chrome/renderer/autofill_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698