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

Unified Diff: components/password_manager/core/browser/password_autofill_manager.cc

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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: components/password_manager/core/browser/password_autofill_manager.cc
diff --git a/components/password_manager/core/browser/password_autofill_manager.cc b/components/password_manager/core/browser/password_autofill_manager.cc
index bd078dc22bc23fea4d557eadd2a8ce2147e38d75..01bf791bed010de8ddfda9ae442a1c79cb34dcd1 100644
--- a/components/password_manager/core/browser/password_autofill_manager.cc
+++ b/components/password_manager/core/browser/password_autofill_manager.cc
@@ -17,9 +17,9 @@ namespace password_manager {
PasswordAutofillManager::PasswordAutofillManager(
PasswordManagerClient* password_manager_client,
- autofill::AutofillManagerDelegate* autofill_manager_delegate)
+ autofill::AutofillClient* autofill_client)
: password_manager_client_(password_manager_client),
- autofill_manager_delegate_(autofill_manager_delegate),
+ autofill_client_(autofill_client),
weak_ptr_factory_(this) {
}
@@ -77,21 +77,20 @@ void PasswordAutofillManager::OnShowPasswordSuggestions(
form_field_ = field;
if (suggestions.empty()) {
- autofill_manager_delegate_->HideAutofillPopup();
+ autofill_client_->HideAutofillPopup();
return;
}
std::vector<base::string16> empty(suggestions.size());
std::vector<int> password_ids(suggestions.size(),
autofill::POPUP_ITEM_ID_PASSWORD_ENTRY);
- autofill_manager_delegate_->ShowAutofillPopup(
- bounds,
- field.text_direction,
- suggestions,
- realms,
- empty,
- password_ids,
- weak_ptr_factory_.GetWeakPtr());
+ autofill_client_->ShowAutofillPopup(bounds,
+ field.text_direction,
+ suggestions,
+ realms,
+ empty,
+ password_ids,
+ weak_ptr_factory_.GetWeakPtr());
}
void PasswordAutofillManager::Reset() {
@@ -127,7 +126,7 @@ void PasswordAutofillManager::DidAcceptSuggestion(const base::string16& value,
int identifier) {
bool success = FillSuggestion(form_field_, value);
DCHECK(success);
- autofill_manager_delegate_->HideAutofillPopup();
+ autofill_client_->HideAutofillPopup();
}
void PasswordAutofillManager::RemoveSuggestion(const base::string16& value,

Powered by Google App Engine
This is Rietveld 408576698