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

Unified Diff: net/dns/dns_hosts.h

Issue 1666843002: Refactor StringPiece hash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sort includes. Created 4 years, 10 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/base/linked_hash_map.h ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_hosts.h
diff --git a/net/dns/dns_hosts.h b/net/dns/dns_hosts.h
index d8ece2cd48e848464f03df71f5747aff840ea215..0b9edc21d9b85070b2c0fe070570a2083dcf9ab4 100644
--- a/net/dns/dns_hosts.h
+++ b/net/dns/dns_hosts.h
@@ -27,8 +27,7 @@ namespace BASE_HASH_NAMESPACE {
template<>
struct hash<net::DnsHostsKey> {
std::size_t operator()(const net::DnsHostsKey& key) const {
- hash<base::StringPiece> string_piece_hash;
- return string_piece_hash(key.first) + key.second;
+ return base::StringPieceHash()(key.first) + key.second;
}
};
« no previous file with comments | « net/base/linked_hash_map.h ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698