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

Unified Diff: chrome/test/live_sync/autofill_helper.cc

Issue 7576001: Refactor webkit_glue::FormField to remove hacky methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only FormField class refactoring Created 9 years, 4 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: chrome/test/live_sync/autofill_helper.cc
diff --git a/chrome/test/live_sync/autofill_helper.cc b/chrome/test/live_sync/autofill_helper.cc
index 94aa95d42b18424d604a0770513dc9780a9f0baf..f877d6f051ef287c2ef53354b36124a51ab8be7e 100644
--- a/chrome/test/live_sync/autofill_helper.cc
+++ b/chrome/test/live_sync/autofill_helper.cc
@@ -134,12 +134,10 @@ void AddKeys(int profile,
for (std::set<AutofillKey>::const_iterator i = keys.begin();
i != keys.end();
++i) {
- form_fields.push_back(webkit_glue::FormField(string16(),
- (*i).name(),
- (*i).value(),
- string16(),
- 0,
- false));
+ webkit_glue::FormField field;
+ field.name = i->name();
+ field.value = i->value();
+ form_fields.push_back(field);
}
WaitableEvent done_event(false, false);

Powered by Google App Engine
This is Rietveld 408576698