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

Unified Diff: net/spdy/hpack/hpack_header_table.cc

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/spdy/hpack/hpack_header_table.h ('k') | net/spdy/spdy_header_block.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_header_table.cc
diff --git a/net/spdy/hpack/hpack_header_table.cc b/net/spdy/hpack/hpack_header_table.cc
index 307c0024286e3ff29c41bf2c34a165a9964f456f..01e96c09a0c71cb4240aba6da9dd66a9fd6282c7 100644
--- a/net/spdy/hpack/hpack_header_table.cc
+++ b/net/spdy/hpack/hpack_header_table.cc
@@ -16,8 +16,8 @@ using base::StringPiece;
size_t HpackHeaderTable::EntryHasher::operator()(
const HpackEntry* entry) const {
- return BASE_HASH_NAMESPACE::hash<base::StringPiece>()(entry->name()) ^
- BASE_HASH_NAMESPACE::hash<base::StringPiece>()(entry->value());
+ return base::StringPieceHash()(entry->name()) ^
+ base::StringPieceHash()(entry->value());
}
bool HpackHeaderTable::EntriesEq::operator()(const HpackEntry* lhs,
« no previous file with comments | « net/spdy/hpack/hpack_header_table.h ('k') | net/spdy/spdy_header_block.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698