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

Unified Diff: net/quic/core/quic_tag.cc

Issue 2943703002: Use ContainsValue() instead of std::find() in net/ (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
« no previous file with comments | « net/log/net_log.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_tag.cc
diff --git a/net/quic/core/quic_tag.cc b/net/quic/core/quic_tag.cc
index 1df74e662be5c76c1e6cf57e13464799a3ebeb73..2d0f1ecc083bc61e14e74f92309911521253ab59 100644
--- a/net/quic/core/quic_tag.cc
+++ b/net/quic/core/quic_tag.cc
@@ -4,9 +4,8 @@
#include "net/quic/core/quic_tag.h"
-#include <algorithm>
-
#include "base/macros.h"
+#include "base/stl_util.h"
#include "net/quic/platform/api/quic_text_utils.h"
namespace net {
@@ -62,8 +61,7 @@ uint32_t MakeQuicTag(char a, char b, char c, char d) {
}
bool ContainsQuicTag(const QuicTagVector& tag_vector, QuicTag tag) {
- return std::find(tag_vector.begin(), tag_vector.end(), tag) !=
- tag_vector.end();
+ return base::ContainsValue(tag_vector, tag);
}
} // namespace net
« no previous file with comments | « net/log/net_log.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698