Chromium Code Reviews| Index: ui/base/models/list_model.h |
| diff --git a/ui/base/models/list_model.h b/ui/base/models/list_model.h |
| index 95883fc7272817ef3f3134fce982b6101644265f..dbbd689f96c481912469d0b156ecd1cffd2dfb6d 100644 |
| --- a/ui/base/models/list_model.h |
| +++ b/ui/base/models/list_model.h |
| @@ -47,7 +47,7 @@ class ListModel { |
| // Removes all items from the model. This does NOT delete the items. |
| void RemoveAll() { |
| size_t count = item_count(); |
| - items_.clear(); |
| + items_.weak_clear(); |
| NotifyItemsRemoved(0, count); |
| } |