Index: content/browser/browsing_instance.cc |
diff --git a/content/browser/browsing_instance.cc b/content/browser/browsing_instance.cc |
index 4809dd76237a2db746ad5e4d5c185dd6f38b708d..4cfca2b5ef7268bc164b768c82580a12555715be 100644 |
--- a/content/browser/browsing_instance.cc |
+++ b/content/browser/browsing_instance.cc |
@@ -13,6 +13,17 @@ |
#include "content/public/common/content_switches.h" |
#include "content/public/common/url_constants.h" |
+#if defined(OS_ANDROID) |
+namespace BASE_HASH_NAMESPACE { |
+template<> |
+struct hash<content::BrowserContext*> { |
jam
2012/01/23 17:13:13
btw i just noticed that browser_context already ha
jam
2012/01/25 21:27:52
what about this one?
|
+ std::size_t operator()(content::BrowserContext* const& ptr) const { |
+ return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
+ } |
+}; |
+} // BASE_HASH_NAMESPACE |
+#endif // OS_ANDROID |
+ |
// static |
base::LazyInstance< |
BrowsingInstance::ContextSiteInstanceMap, |