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

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

Issue 2403773002: Remove stl_util's STLDeleteContainerPointers from autofill. (Closed)
Patch Set: rebase Created 4 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: 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 3a6805b2faee44dc1da1504a654ed36f4e9156ed..fa4aa7ce8771737715fa6385573d28dfbc9e8982 100644
--- a/components/autofill/core/browser/autocomplete_history_manager.cc
+++ b/components/autofill/core/browser/autocomplete_history_manager.cc
@@ -140,7 +140,7 @@ void AutocompleteHistoryManager::SendSuggestions(
void AutocompleteHistoryManager::OnWebDataServiceRequestDone(
WebDataServiceBase::Handle h,
- const WDTypedResult* result) {
+ std::unique_ptr<WDTypedResult> result) {
// TODO(robliao): Remove ScopedTracker below once https://crbug.com/422460 is
// fixed.
tracked_objects::ScopedTracker tracking_profile(
@@ -160,8 +160,8 @@ void AutocompleteHistoryManager::OnWebDataServiceRequestDone(
}
DCHECK_EQ(AUTOFILL_VALUE_RESULT, result->GetType());
- const WDResult<std::vector<base::string16> >* autofill_result =
- static_cast<const WDResult<std::vector<base::string16> >*>(result);
+ const WDResult<std::vector<base::string16>>* autofill_result =
+ static_cast<const WDResult<std::vector<base::string16>>*>(result.get());
std::vector<base::string16> suggestions = autofill_result->GetValue();
SendSuggestions(&suggestions);
}
« no previous file with comments | « components/autofill/core/browser/autocomplete_history_manager.h ('k') | components/autofill/core/browser/autofill-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698