Index: content/child/child_thread_impl.cc |
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc |
index 977d87a566ec04e003f288de6b234c69f07f4cbe..e254a6f26b2acc663303513698473f87ae97cf0e 100644 |
--- a/content/child/child_thread_impl.cc |
+++ b/content/child/child_thread_impl.cc |
@@ -78,6 +78,10 @@ |
#include "content/public/common/content_descriptors.h" |
#endif |
+#if defined(OS_MACOSX) |
+#include "base/allocator/allocator_interception_mac.h" |
+#endif |
+ |
using tracked_objects::ThreadData; |
namespace content { |
@@ -553,6 +557,10 @@ void ChildThreadImpl::Init(const Options& options) { |
connection_timeout = temp; |
} |
+#if defined(OS_MACOSX) |
+ base::allocator::PeriodicallyShimNewMallocZones(); |
+#endif |
+ |
message_loop_->task_runner()->PostDelayedTask( |
FROM_HERE, base::Bind(&ChildThreadImpl::EnsureConnected, |
channel_connected_factory_->GetWeakPtr()), |