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

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

Issue 2606473003: Use AutofillDriver* in ContentAutofillDriverFactory when possible (Closed)
Patch Set: Fix Android compilation Created 4 years 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
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 773ee6b7ae5af0e0080021b8e1f8462f26e497a1..31374796dbecf32216f56889f2ba1e5bb03818bd 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
@@ -348,7 +348,8 @@ void ChromeAutofillClient::OnFirstUserGestureObserved() {
// And actually they have no corresponding drivers in the factory's map.
if (!frame->IsRenderFrameLive())
continue;
- ContentAutofillDriver* driver = factory->DriverForFrame(frame);
+ ContentAutofillDriver* driver =
+ static_cast<ContentAutofillDriver*>(factory->DriverForFrame(frame));
DCHECK(driver);
driver->NotifyFirstUserGestureObservedInTab();
}
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc ('k') | components/autofill/content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698