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

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

Issue 2143483004: [DevTools] Fix v8_inspector compilation with node (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/String16STL.h
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h b/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
index 7b185a26b72504f498d1d00bd0b0bc5c78601bfb..e86c4059565c665ea3e11140fdfe37c9f28b715c 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
@@ -243,6 +243,17 @@ public:
};
} // namespace WTF
+
+namespace std {
+template<> struct hash<String16> {
+ std::size_t operator()(const String16& string) const
+ {
+ return string.hash();
+ }
+};
+
+} // namespace std
+
using String = WTF::String;
#endif // !defined(String16STL_h)

Powered by Google App Engine
This is Rietveld 408576698