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

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

Issue 662493002: [Password Generation] Enable generation for dynamically created forms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better Created 6 years, 2 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
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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 void AutofillAgent::didAssociateFormControls(const WebVector<WebNode>& nodes) { 723 void AutofillAgent::didAssociateFormControls(const WebVector<WebNode>& nodes) {
724 for (size_t i = 0; i < nodes.size(); ++i) { 724 for (size_t i = 0; i < nodes.size(); ++i) {
725 WebLocalFrame* frame = nodes[i].document().frame(); 725 WebLocalFrame* frame = nodes[i].document().frame();
726 // Only monitors dynamic forms created in the top frame. Dynamic forms 726 // Only monitors dynamic forms created in the top frame. Dynamic forms
727 // inserted in iframes are not captured yet. Frame is only processed 727 // inserted in iframes are not captured yet. Frame is only processed
728 // if it has finished loading, otherwise you can end up with a partially 728 // if it has finished loading, otherwise you can end up with a partially
729 // parsed form. 729 // parsed form.
730 if (frame && !frame->parent() && !frame->isLoading()) { 730 if (frame && !frame->parent() && !frame->isLoading()) {
731 ProcessForms(*frame); 731 ProcessForms(*frame);
732 password_autofill_agent_->OnDynamicFormsSeen(frame); 732 password_autofill_agent_->OnDynamicFormsSeen(frame);
733 if (password_generation_agent_)
734 password_generation_agent_->OnDynamicFormsSeen(frame);
733 return; 735 return;
734 } 736 }
735 } 737 }
736 } 738 }
737 739
738 } // namespace autofill 740 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698