| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <tuple> | 9 #include <tuple> |
| 10 | 10 |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 } | 764 } |
| 765 } | 765 } |
| 766 } | 766 } |
| 767 | 767 |
| 768 void AutofillAgent::ajaxSucceeded() { | 768 void AutofillAgent::ajaxSucceeded() { |
| 769 OnSamePageNavigationCompleted(); | 769 OnSamePageNavigationCompleted(); |
| 770 password_autofill_agent_->AJAXSucceeded(); | 770 password_autofill_agent_->AJAXSucceeded(); |
| 771 } | 771 } |
| 772 | 772 |
| 773 void AutofillAgent::ConnectToMojoAutofillDriverIfNeeded() { | 773 void AutofillAgent::ConnectToMojoAutofillDriverIfNeeded() { |
| 774 if (mojo_autofill_driver_) | 774 if (mojo_autofill_driver_.is_bound() && |
| 775 !mojo_autofill_driver_.encountered_error()) |
| 775 return; | 776 return; |
| 776 | 777 |
| 777 render_frame()->GetServiceRegistry()->ConnectToRemoteService( | 778 render_frame()->GetServiceRegistry()->ConnectToRemoteService( |
| 778 mojo::GetProxy(&mojo_autofill_driver_)); | 779 mojo::GetProxy(&mojo_autofill_driver_)); |
| 779 } | 780 } |
| 780 | 781 |
| 781 // LegacyAutofillAgent --------------------------------------------------------- | 782 // LegacyAutofillAgent --------------------------------------------------------- |
| 782 | 783 |
| 783 AutofillAgent::LegacyAutofillAgent::LegacyAutofillAgent( | 784 AutofillAgent::LegacyAutofillAgent::LegacyAutofillAgent( |
| 784 content::RenderView* render_view, | 785 content::RenderView* render_view, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 796 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { | 797 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { |
| 797 // No-op. Don't delete |this|. | 798 // No-op. Don't delete |this|. |
| 798 } | 799 } |
| 799 | 800 |
| 800 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { | 801 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { |
| 801 if (agent_) | 802 if (agent_) |
| 802 agent_->FocusChangeComplete(); | 803 agent_->FocusChangeComplete(); |
| 803 } | 804 } |
| 804 | 805 |
| 805 } // namespace autofill | 806 } // namespace autofill |
| OLD | NEW |