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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h

Issue 2087953004: Switch v8 inspector to stl collections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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: third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h b/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h
index 57a91d82c6f68d71d010c9bbc64e2297cdc7eebf..87663116315251037bd4e02d45bfc4286641ff1c 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h
@@ -138,4 +138,14 @@ struct HashTraits<String16> : SimpleClassHashTraits<String16> {
} // namespace WTF
+namespace std {
+template<> struct hash<String16> {
+ std::size_t operator()(const String16& string) const
+ {
+ return StringHash::hash(string.impl());
+ }
+};
+
+} // namespace std
+
#endif // !defined(String16WTF_h)

Powered by Google App Engine
This is Rietveld 408576698