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

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

Issue 2947593005: Use ContainsValue() instead of std::find() in chrome/browser/ui/ (Closed)
Patch Set: Created 3 years, 6 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
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 fcac86589af36bc0882147297b6199add7b2df22..44ec82e763b4d74bec43bb08ed743ba4efde9f21 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -1180,7 +1180,7 @@ void TabStrip::MaybeStartDrag(
}
}
DCHECK(!tabs.empty());
- DCHECK(std::find(tabs.begin(), tabs.end(), tab) != tabs.end());
+ DCHECK(base::ContainsValue(tabs, tab));
ui::ListSelectionModel selection_model;
if (!original_selection.IsSelected(model_index))
selection_model.Copy(original_selection);
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | chrome/browser/ui/webui/settings/chromeos/fingerprint_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698