| Index: ui/app_list/views/search_result_container_view.cc
|
| diff --git a/ui/app_list/views/search_result_container_view.cc b/ui/app_list/views/search_result_container_view.cc
|
| index 11ccb25bb97ae51edb25609a0e5461e0bd793499..b8a9852e01965260f486b7e6a1e66fafa93aebc3 100644
|
| --- a/ui/app_list/views/search_result_container_view.cc
|
| +++ b/ui/app_list/views/search_result_container_view.cc
|
| @@ -61,6 +61,10 @@ void SearchResultContainerView::ScheduleUpdate() {
|
| }
|
| }
|
|
|
| +bool SearchResultContainerView::UpdateScheduled() {
|
| + return update_factory_.HasWeakPtrs();
|
| +}
|
| +
|
| void SearchResultContainerView::ListItemsAdded(size_t start, size_t count) {
|
| ScheduleUpdate();
|
| }
|
| @@ -79,10 +83,10 @@ void SearchResultContainerView::ListItemsChanged(size_t start, size_t count) {
|
| }
|
|
|
| void SearchResultContainerView::DoUpdate() {
|
| + update_factory_.InvalidateWeakPtrs();
|
| num_results_ = Update();
|
| Layout();
|
| PreferredSizeChanged();
|
| - update_factory_.InvalidateWeakPtrs();
|
| }
|
|
|
| } // namespace app_list
|
|
|