Commit 8a2f93db authored by Xi Cheng's avatar Xi Cheng Committed by Commit Bot

Use auto keyword for iteration in jumplist

Change-Id: I6dbc74bfa3e1cd27b9893c1d55c3e9277dc08d32
Reviewed-on: https://chromium-review.googlesource.com/c/1261968Reviewed-by: default avatarPatrick Monette <pmonette@chromium.org>
Commit-Queue: Xi Cheng <chengx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597162}
parent 3892d059
......@@ -862,8 +862,8 @@ int JumpList::CreateIconFiles(const base::FilePath& icon_dir,
int icons_created = 0;
// Reuse icons for urls that already present in the current JumpList.
for (ShellLinkItemList::const_iterator iter = item_list.begin();
iter != item_list.end() && max_items > 0; ++iter, --max_items) {
for (auto iter = item_list.begin(); iter != item_list.end() && max_items > 0;
++iter, --max_items) {
ShellLinkItem* item = iter->get();
auto cache_iter = icon_cur.find(item->url());
if (cache_iter != icon_cur.end()) {
......
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