Index: chrome/browser/ui/autofill/chrome_autofill_client.cc |
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
index efd0662f865a33fe8b4cb426bf6c4e773dc81a84..62a45c9d5ce021ab17c35404927e98737e960722 100644 |
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc |
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
@@ -331,15 +331,7 @@ void ChromeAutofillClient::OnFirstUserGestureObserved() { |
ContentAutofillDriverFactory::FromWebContents(web_contents()); |
DCHECK(factory); |
- for (content::RenderFrameHost* frame : web_contents()->GetAllFrames()) { |
- // No need to notify non-live frames. |
- // And actually they have no corresponding drivers in the factory's map. |
- if (!frame->IsRenderFrameLive()) |
- continue; |
- ContentAutofillDriver* driver = factory->DriverForFrame(frame); |
- DCHECK(driver); |
- driver->NotifyFirstUserGestureObservedInTab(); |
- } |
+ factory->OnFirstUserGestureObserved(); |
} |
bool ChromeAutofillClient::IsContextSecure() { |