| 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);
|
| }
|
|
|