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

Unified Diff: chrome/browser/autofill/autofill_external_delegate.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
« no previous file with comments | « base/supports_user_data.h ('k') | chrome/browser/autofill/autofill_external_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_external_delegate.cc
diff --git a/chrome/browser/autofill/autofill_external_delegate.cc b/chrome/browser/autofill/autofill_external_delegate.cc
index e762da7ce11bdad66794c175efbd863ad76d13df..109523c9c33a7f80dd1a91917650a532dc209daf 100644
--- a/chrome/browser/autofill/autofill_external_delegate.cc
+++ b/chrome/browser/autofill/autofill_external_delegate.cc
@@ -110,8 +110,9 @@ void AutofillExternalDelegate::OnSuggestionsReturned(
popup_visible_ = true;
ApplyAutofillSuggestions(values, labels, icons, ids);
- tab_contents_->autofill_manager()->OnDidShowAutofillSuggestions(
- has_autofill_item && !has_shown_autofill_popup_for_current_edit_);
+ AutofillManager::FromWebContents(tab_contents_->web_contents())->
+ OnDidShowAutofillSuggestions(
+ has_autofill_item && !has_shown_autofill_popup_for_current_edit_);
has_shown_autofill_popup_for_current_edit_ |= has_autofill_item;
}
}
« no previous file with comments | « base/supports_user_data.h ('k') | chrome/browser/autofill/autofill_external_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698