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

Unified Diff: webkit/glue/form_data.h

Issue 2842062: AutoFill: Record whether the user initiated the form submission and don't save form data if the form (Closed)
Patch Set: Relax DCHECK. Created 10 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
« no previous file with comments | « chrome/renderer/form_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/form_data.h
diff --git a/webkit/glue/form_data.h b/webkit/glue/form_data.h
index 033cac35f0e2abca4b577e0a6a61c3dc0aac2b6b..7332cd9da94a07a181d095fce33fe55daa315805 100644
--- a/webkit/glue/form_data.h
+++ b/webkit/glue/form_data.h
@@ -23,6 +23,8 @@ struct FormData {
GURL origin;
// The action target of the form.
GURL action;
+ // true if this form was submitted by a user gesture and not javascript.
+ bool user_submitted;
// A vector of all the input fields in the form.
std::vector<FormField> fields;
@@ -32,6 +34,7 @@ struct FormData {
StringToLowerASCII(method) == StringToLowerASCII(form.method) &&
origin == form.origin &&
action == form.action &&
+ user_submitted == form.user_submitted &&
fields == form.fields);
}
};
« no previous file with comments | « chrome/renderer/form_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698