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

Unified Diff: chrome/renderer/form_manager.cc

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/common/render_messages.h ('k') | webkit/glue/form_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/form_manager.cc
diff --git a/chrome/renderer/form_manager.cc b/chrome/renderer/form_manager.cc
index bfb9fe9cc17ceaca959a05e87b2e84791b6a2650..56640af0be5a2698a903e380464fcf9b4ff7be45 100644
--- a/chrome/renderer/form_manager.cc
+++ b/chrome/renderer/form_manager.cc
@@ -330,6 +330,7 @@ bool FormManager::WebFormElementToFormData(const WebFormElement& element,
form->method = element.method();
form->origin = frame->url();
form->action = frame->document().completeURL(element.action());
+ form->user_submitted = element.wasUserSubmitted();
// If the completed URL is not valid, just use the action we get from
// WebKit.
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/form_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698