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

Unified Diff: net/http/http_response_headers.cc

Issue 1869503003: Convert //net and //chromecast to std::unordered_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cast Created 4 years, 8 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: net/http/http_response_headers.cc
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index 8f8ce9d38aadbda82e308f653327269e7e89d0af..f166cf5a2b3baab46fce208fbc563aeed31a87f8 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -10,6 +10,7 @@
#include "net/http/http_response_headers.h"
#include <algorithm>
+#include <unordered_map>
#include <utility>
#include "base/format_macros.h"
@@ -456,7 +457,7 @@ void HttpResponseHeaders::GetNormalizedHeaders(std::string* output) const {
// be a web app, we cannot be certain of the semantics of commas despite the
// fact that RFC 2616 says that they should be regarded as value separators.
//
- typedef base::hash_map<std::string, size_t> HeadersMap;
+ using HeadersMap = std::unordered_map<std::string, size_t>;
HeadersMap headers_map;
HeadersMap::iterator iter = headers_map.end();

Powered by Google App Engine
This is Rietveld 408576698