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

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

Issue 2024603002: [Autofill] Register AutofillDriver mojo interface earlier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot failure Created 4 years, 6 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
« no previous file with comments | « components/autofill/content/browser/content_autofill_driver_factory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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
OLDNEW
« no previous file with comments | « components/autofill/content/browser/content_autofill_driver_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698