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

Side by Side Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 407083002: [Autofill] Include fields with autocomplete="off" in server upload requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update test expectations Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/content/renderer/autofill_agent.h" 5 #include "components/autofill/content/renderer/autofill_agent.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 break; 199 break;
200 } 200 }
201 } 201 }
202 } 202 }
203 203
204 void AutofillAgent::WillSubmitForm(WebLocalFrame* frame, 204 void AutofillAgent::WillSubmitForm(WebLocalFrame* frame,
205 const WebFormElement& form) { 205 const WebFormElement& form) {
206 FormData form_data; 206 FormData form_data;
207 if (WebFormElementToFormData(form, 207 if (WebFormElementToFormData(form,
208 WebFormControlElement(), 208 WebFormControlElement(),
209 REQUIRE_AUTOCOMPLETE, 209 REQUIRE_NONE,
210 static_cast<ExtractMask>( 210 static_cast<ExtractMask>(
211 EXTRACT_VALUE | EXTRACT_OPTION_TEXT), 211 EXTRACT_VALUE | EXTRACT_OPTION_TEXT),
212 &form_data, 212 &form_data,
213 NULL)) { 213 NULL)) {
214 Send(new AutofillHostMsg_FormSubmitted(routing_id(), form_data, 214 Send(new AutofillHostMsg_FormSubmitted(routing_id(), form_data,
215 base::TimeTicks::Now())); 215 base::TimeTicks::Now()));
216 } 216 }
217 } 217 }
218 218
219 void AutofillAgent::FocusedNodeChanged(const WebNode& node) { 219 void AutofillAgent::FocusedNodeChanged(const WebNode& node) {
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 // parsed form. 733 // parsed form.
734 if (frame && !frame->parent() && !frame->isLoading()) { 734 if (frame && !frame->parent() && !frame->isLoading()) {
735 ProcessForms(*frame); 735 ProcessForms(*frame);
736 password_autofill_agent_->OnDynamicFormsSeen(frame); 736 password_autofill_agent_->OnDynamicFormsSeen(frame);
737 return; 737 return;
738 } 738 }
739 } 739 }
740 } 740 }
741 741
742 } // namespace autofill 742 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698