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

Unified Diff: content/browser/renderer_host/p2p/socket_host_udp.cc

Issue 2228403003: content: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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
Index: content/browser/renderer_host/p2p/socket_host_udp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc
index 75ea82a84e0352d7b72d6dca3fe6bc3ca9436de8..2eb3579b99800addbe0f85a0f310ae708d1b85cc 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc
@@ -236,7 +236,7 @@ void P2PSocketHostUdp::HandleReadResult(int result) {
if (result > 0) {
std::vector<char> data(recv_buffer_->data(), recv_buffer_->data() + result);
- if (!ContainsKey(connected_peers_, recv_address_)) {
+ if (!base::ContainsKey(connected_peers_, recv_address_)) {
P2PSocketHost::StunMessageType type;
bool stun = GetStunPacketType(&*data.begin(), data.size(), &type);
if ((stun && IsRequestOrResponse(type))) {
@@ -270,7 +270,7 @@ void P2PSocketHostUdp::Send(const net::IPEndPoint& to,
return;
}
- if (!ContainsKey(connected_peers_, to)) {
+ if (!base::ContainsKey(connected_peers_, to)) {
P2PSocketHost::StunMessageType type = P2PSocketHost::StunMessageType();
bool stun = GetStunPacketType(&*data.begin(), data.size(), &type);
if (!stun || type == STUN_DATA_INDICATION) {

Powered by Google App Engine
This is Rietveld 408576698