| Index: components/autofill/content/browser/content_autofill_driver.cc
|
| diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc
|
| index 8332c650854dcd43918ef3a2526e9aaeda029f22..c0648785994745257b2b3963690397368dde6e8e 100644
|
| --- a/components/autofill/content/browser/content_autofill_driver.cc
|
| +++ b/components/autofill/content/browser/content_autofill_driver.cc
|
| @@ -170,6 +170,15 @@ gfx::RectF ContentAutofillDriver::TransformBoundingBoxToViewportCoordinates(
|
| return new_box;
|
| }
|
|
|
| +void ContentAutofillDriver::DidInteractWithCreditCardForm() {
|
| + // Notify the WebContents about credit card inputs on HTTP pages.
|
| + content::WebContents* contents =
|
| + content::WebContents::FromRenderFrameHost(render_frame_host_);
|
| + if (contents->GetVisibleURL().SchemeIsCryptographic())
|
| + return;
|
| + contents->OnCreditCardInputShownOnHttp();
|
| +}
|
| +
|
| // mojom::AutofillDriver:
|
| void ContentAutofillDriver::FirstUserGestureObserved() {
|
| client_->OnFirstUserGestureObserved();
|
|
|