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

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

Issue 2150333003: [DevTools] Compatibility with old STL libraries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo in the build file. 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 cdd183177f7feab1f22fc446963c0b510109c908..703e5b0f025d9499efd202e0836fd46cf364ac41 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/String16STL.h
@@ -243,6 +243,7 @@ public:
};
} // namespace WTF
+#if !defined(__APPLE__) || defined(_LIBCPP_VERSION)
namespace std {
template<> struct hash<String16> {
@@ -254,6 +255,8 @@ template<> struct hash<String16> {
} // namespace std
+#endif // !defined(__APPLE__) || defined(_LIBCPP_VERSION)
+
using String = WTF::String;
#endif // !defined(String16STL_h)

Powered by Google App Engine
This is Rietveld 408576698