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

Unified Diff: chrome/browser/password_manager/password_manager_delegate_impl.cc

Issue 10987100: Switch AutofillManager to be UserData on WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix external delegate Created 8 years, 2 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
Index: chrome/browser/password_manager/password_manager_delegate_impl.cc
diff --git a/chrome/browser/password_manager/password_manager_delegate_impl.cc b/chrome/browser/password_manager/password_manager_delegate_impl.cc
index 3966ba350d8969c1a1edaf4c48072fcb18a72b34..cf1f1ce44d97ebe889b58b8056b11ceccae658d3 100644
--- a/chrome/browser/password_manager/password_manager_delegate_impl.cc
+++ b/chrome/browser/password_manager/password_manager_delegate_impl.cc
@@ -124,7 +124,9 @@ InfoBarDelegate::InfoBarAutomationType
void PasswordManagerDelegateImpl::FillPasswordForm(
const PasswordFormFillData& form_data) {
- bool disable_popup = tab_contents_->autofill_manager()->HasExternalDelegate();
+ AutofillManager* autofill_manager =
+ AutofillManager::FromWebContents(tab_contents_->web_contents());
+ bool disable_popup = autofill_manager->HasExternalDelegate();
tab_contents_->web_contents()->GetRenderViewHost()->Send(
new AutofillMsg_FillPasswordForm(
« no previous file with comments | « chrome/browser/autofill/form_structure_browsertest.cc ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698