Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8704)

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 22460011: [CleanUp] Use base::STLSetDifference in place of std::set_difference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing head file. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | chrome/common/extensions/permissions/permission_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index a99257db1107b4e8d8db7022588d26e15df8780d..321fe2cd1497432896b352dc577f1964c72423d4 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -843,14 +843,10 @@ void TabStrip::SetSelection(const ui::ListSelectionModel& old_selection,
}
}
- ui::ListSelectionModel::SelectedIndices no_longer_selected;
- std::insert_iterator<ui::ListSelectionModel::SelectedIndices>
- it(no_longer_selected, no_longer_selected.begin());
- std::set_difference(old_selection.selected_indices().begin(),
- old_selection.selected_indices().end(),
- new_selection.selected_indices().begin(),
- new_selection.selected_indices().end(),
- it);
+ ui::ListSelectionModel::SelectedIndices no_longer_selected =
+ base::STLSetDifference<ui::ListSelectionModel::SelectedIndices>(
+ old_selection.selected_indices(),
+ new_selection.selected_indices());
for (size_t i = 0; i < no_longer_selected.size(); ++i)
tab_at(no_longer_selected[i])->StopMiniTabTitleAnimation();
}
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | chrome/common/extensions/permissions/permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698