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

Unified Diff: chrome/browser/android/thumbnail/thumbnail_cache.cc

Issue 2950803002: Use ContainsValue() instead of std::find() in chrome/browser/ and chrome/test/ (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/android/thumbnail/thumbnail_cache.cc
diff --git a/chrome/browser/android/thumbnail/thumbnail_cache.cc b/chrome/browser/android/thumbnail/thumbnail_cache.cc
index 354da956350243a2f2d4bc9cede9c2346a211773..e995cabb04ed99991803087d0fb50bdcb131af48 100644
--- a/chrome/browser/android/thumbnail/thumbnail_cache.cc
+++ b/chrome/browser/android/thumbnail/thumbnail_cache.cc
@@ -790,9 +790,7 @@ void ThumbnailCache::PostReadTask(TabId tab_id,
const gfx::Size& content_size) {
read_in_progress_ = false;
- TabIdList::iterator iter =
- std::find(read_queue_.begin(), read_queue_.end(), tab_id);
- if (iter == read_queue_.end()) {
+ if (!base::ContainsValue(read_queue_, tab_id)) {
ReadNextThumbnail();
return;
}

Powered by Google App Engine
This is Rietveld 408576698