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

Side by Side Diff: net/base/port_util.cc

Issue 1502373009: Allow std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, more HashPair -> HashInts Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « net/base/network_change_notifier_linux.h ('k') | net/disk_cache/simple/simple_index_file.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/port_util.h" 5 #include "net/base/port_util.h"
6 6
7 #include <limits>
7 #include <set> 8 #include <set>
8 9
9 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
13 #include "url/url_constants.h" 14 #include "url/url_constants.h"
14 15
15 namespace net { 16 namespace net {
16 17
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 ScopedPortException::~ScopedPortException() { 178 ScopedPortException::~ScopedPortException() {
178 std::multiset<int>::iterator it = 179 std::multiset<int>::iterator it =
179 g_explicitly_allowed_ports.Get().find(port_); 180 g_explicitly_allowed_ports.Get().find(port_);
180 if (it != g_explicitly_allowed_ports.Get().end()) 181 if (it != g_explicitly_allowed_ports.Get().end())
181 g_explicitly_allowed_ports.Get().erase(it); 182 g_explicitly_allowed_ports.Get().erase(it);
182 else 183 else
183 NOTREACHED(); 184 NOTREACHED();
184 } 185 }
185 186
186 } // namespace net 187 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_change_notifier_linux.h ('k') | net/disk_cache/simple/simple_index_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698