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

Unified Diff: components/autofill/browser/autocomplete_history_manager.cc

Issue 16154031: Un-refcount AutofillWebData and TokenWebData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 7 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/browser/autocomplete_history_manager.cc
diff --git a/components/autofill/browser/autocomplete_history_manager.cc b/components/autofill/browser/autocomplete_history_manager.cc
index 2f6ce6356e20b0887005d98542ec8c9338fdc875..2ff85ca5dff9c4710e129abaa99636cc0e4dd9a9 100644
--- a/components/autofill/browser/autocomplete_history_manager.cc
+++ b/components/autofill/browser/autocomplete_history_manager.cc
@@ -117,7 +117,7 @@ void AutocompleteHistoryManager::OnGetAutocompleteSuggestions(
return;
}
- if (autofill_data_.get()) {
+ if (autofill_data_) {
pending_query_handle_ = autofill_data_->GetFormValuesForElementName(
name, prefix, kMaxAutocompleteMenuItems, this);
}
@@ -153,13 +153,13 @@ void AutocompleteHistoryManager::OnFormSubmitted(const FormData& form) {
}
}
- if (!values.empty() && autofill_data_.get())
+ if (!values.empty() && autofill_data_)
autofill_data_->AddFormFields(values);
}
void AutocompleteHistoryManager::OnRemoveAutocompleteEntry(
const base::string16& name, const base::string16& value) {
- if (autofill_data_.get())
+ if (autofill_data_)
autofill_data_->RemoveFormValueForElementName(name, value);
}
@@ -170,7 +170,7 @@ void AutocompleteHistoryManager::SetExternalDelegate(
void AutocompleteHistoryManager::CancelPendingQuery() {
if (pending_query_handle_) {
- if (autofill_data_.get())
+ if (autofill_data_)
autofill_data_->CancelRequest(pending_query_handle_);
pending_query_handle_ = 0;
}

Powered by Google App Engine
This is Rietveld 408576698