| Index: ui/views/view_model.cc
|
| diff --git a/ui/views/view_model.cc b/ui/views/view_model.cc
|
| index 5f492f5380d7b27e0114dca16fa333bda0f377ec..a0a754964508c83023fceda8da5cef8f1fcabcb0 100644
|
| --- a/ui/views/view_model.cc
|
| +++ b/ui/views/view_model.cc
|
| @@ -33,6 +33,11 @@ void ViewModel::Remove(int index) {
|
| }
|
|
|
| void ViewModel::Move(int index, int target_index) {
|
| + DCHECK_LT(index, static_cast<int>(entries_.size()));
|
| + DCHECK_GE(index, 0);
|
| + DCHECK_LT(target_index, static_cast<int>(entries_.size()));
|
| + DCHECK_GE(target_index, 0);
|
| +
|
| if (index == target_index)
|
| return;
|
| Entry entry(entries_[index]);
|
|
|