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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 2603623002: AutofillDriverFactory manages information about user gestures (Closed)
Patch Set: Fix typo Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/autofill/content/browser/content_autofill_driver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | components/autofill/content/browser/content_autofill_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698