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

Unified Diff: content/browser/browsing_instance.cc

Issue 9271028: android build: progress on content and libjingle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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: 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,

Powered by Google App Engine
This is Rietveld 408576698