Commit 0443006f authored by Allen Bauer's avatar Allen Bauer Committed by Commit Bot

DCHECK is unnecessary in SimpleMenuModel::SetIcon.

Upon more detailed inspection of previous code, the DCHECK doesn't serve the same purpose and should be removed.

Bug: 1070132
Change-Id: Iaa1f175b3685c5e91f7910f7911839f4708525e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145246Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758569}
parent 0ef2cae6
......@@ -287,9 +287,7 @@ void SimpleMenuModel::RemoveItemAt(int index) {
}
void SimpleMenuModel::SetIcon(int index, const ui::ImageModel& icon) {
Item* item = &items_[ValidateItemIndex(index)];
DCHECK(item->icon.IsEmpty());
item->icon = icon;
items_[ValidateItemIndex(index)].icon = icon;
MenuItemsChanged();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment