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

Unified Diff: components/autofill/core/browser/autocomplete_history_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/autofill/core/browser/autocomplete_history_manager.cc
diff --git a/components/autofill/core/browser/autocomplete_history_manager.cc b/components/autofill/core/browser/autocomplete_history_manager.cc
index d4737632ad3f9767665ad00ff4f1d0ae31fb55e1..ccd4b5e44c8140f527963d18534a8be204733627 100644
--- a/components/autofill/core/browser/autocomplete_history_manager.cc
+++ b/components/autofill/core/browser/autocomplete_history_manager.cc
@@ -9,9 +9,9 @@
#include "base/prefs/pref_service.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
+#include "components/autofill/core/browser/autofill_client.h"
#include "components/autofill/core/browser/autofill_driver.h"
#include "components/autofill/core/browser/autofill_external_delegate.h"
-#include "components/autofill/core/browser/autofill_manager_delegate.h"
#include "components/autofill/core/browser/validation.h"
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/autofill/core/common/form_data.h"
@@ -36,14 +36,14 @@ bool IsTextField(const FormFieldData& field) {
AutocompleteHistoryManager::AutocompleteHistoryManager(
AutofillDriver* driver,
- AutofillManagerDelegate* manager_delegate)
+ AutofillClient* autofill_client)
: driver_(driver),
- database_(manager_delegate->GetDatabase()),
+ database_(autofill_client->GetDatabase()),
pending_query_handle_(0),
query_id_(0),
external_delegate_(NULL),
- manager_delegate_(manager_delegate) {
- DCHECK(manager_delegate_);
+ autofill_client_(autofill_client) {
+ DCHECK(autofill_client_);
}
AutocompleteHistoryManager::~AutocompleteHistoryManager() {
@@ -56,7 +56,7 @@ void AutocompleteHistoryManager::OnWebDataServiceRequestDone(
DCHECK(pending_query_handle_);
pending_query_handle_ = 0;
- if (!manager_delegate_->IsAutocompleteEnabled()) {
+ if (!autofill_client_->IsAutocompleteEnabled()) {
SendSuggestions(NULL);
return;
}
@@ -93,7 +93,7 @@ void AutocompleteHistoryManager::OnGetAutocompleteSuggestions(
autofill_labels_ = autofill_labels;
autofill_icons_ = autofill_icons;
autofill_unique_ids_ = autofill_unique_ids;
- if (!manager_delegate_->IsAutocompleteEnabled() ||
+ if (!autofill_client_->IsAutocompleteEnabled() ||
form_control_type == "textarea") {
SendSuggestions(NULL);
return;
@@ -106,7 +106,7 @@ void AutocompleteHistoryManager::OnGetAutocompleteSuggestions(
}
void AutocompleteHistoryManager::OnFormSubmitted(const FormData& form) {
- if (!manager_delegate_->IsAutocompleteEnabled())
+ if (!autofill_client_->IsAutocompleteEnabled())
return;
if (driver_->IsOffTheRecord())

Powered by Google App Engine
This is Rietveld 408576698