| Index: ui/app_list/search_provider.cc
|
| diff --git a/ui/app_list/search_provider.cc b/ui/app_list/search_provider.cc
|
| index 6d7bea838e9bcc275841924b166856b7dec2b46e..a8887ee362159fd36836bee981b3ef21bdb5781a 100644
|
| --- a/ui/app_list/search_provider.cc
|
| +++ b/ui/app_list/search_provider.cc
|
| @@ -16,7 +16,12 @@ SearchProvider::~SearchProvider() {
|
| }
|
|
|
| void SearchProvider::Add(std::unique_ptr<SearchResult> result) {
|
| - results_.push_back(std::move(result));
|
| + results_.emplace_back(std::move(result));
|
| + FireResultChanged();
|
| +}
|
| +
|
| +void SearchProvider::SwapResults(Results* new_results) {
|
| + results_.swap(*new_results);
|
| FireResultChanged();
|
| }
|
|
|
|
|