OLD | NEW |
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 Loading... |
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 |
OLD | NEW |