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

Unified Diff: tools/gn/scope.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/tools/quic/spdy_balsa_utils.cc ('k') | ui/accessibility/ax_tree_update.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/scope.h
diff --git a/tools/gn/scope.h b/tools/gn/scope.h
index 2554366a90a37e39876cc9895b8bffb99fa24454..96b3939a15de5d0e55604ac2880654c4b0495373 100644
--- a/tools/gn/scope.h
+++ b/tools/gn/scope.h
@@ -40,7 +40,8 @@ class Template;
// variables. So you should use a non-const containing scope whenever possible.
class Scope {
public:
- typedef base::hash_map<base::StringPiece, Value> KeyValueMap;
+ typedef base::hash_map<base::StringPiece, Value, base::StringPieceHash>
+ KeyValueMap;
// Holds an owning list of Items.
typedef ScopedVector<Item> ItemVector;
@@ -329,7 +330,8 @@ class Scope {
// for more.
unsigned mode_flags_;
- typedef base::hash_map<base::StringPiece, Record> RecordMap;
+ typedef base::hash_map<base::StringPiece, Record, base::StringPieceHash>
+ RecordMap;
RecordMap values_;
// Owning pointers. Note that this can't use string pieces since the names
« no previous file with comments | « net/tools/quic/spdy_balsa_utils.cc ('k') | ui/accessibility/ax_tree_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698