Bug 1356268 - Fix nsMemoryReporter unified build bustage. r=froydnj draft
authorAndrew McCreight <continuation@gmail.com>
Thu, 13 Apr 2017 07:26:44 -0700
changeset 562178 49cab58d1fe7d67f00d2e22da0b63a690e54c003
parent 562177 87b5ead978b02fc43ae73f8b1620094f2994acc4
child 624194 c58f536af13f7dbec07563c7d96465005f72d146
push id53977
push userbmo:continuation@gmail.com
push dateThu, 13 Apr 2017 15:44:32 +0000
reviewersfroydnj
bugs1356268
milestone55.0a1
Bug 1356268 - Fix nsMemoryReporter unified build bustage. r=froydnj The header uses nsDataHashtable, but not nsTHashtable. MozReview-Commit-ID: 1wxmqjTyPMS
xpcom/base/nsMemoryReporterManager.cpp
xpcom/base/nsMemoryReporterManager.h
--- a/xpcom/base/nsMemoryReporterManager.cpp
+++ b/xpcom/base/nsMemoryReporterManager.cpp
@@ -37,16 +37,17 @@
 #ifndef getpid
 #define getpid _getpid
 #endif
 #else
 #include <unistd.h>
 #endif
 
 using namespace mozilla;
+using namespace dom;
 
 #if defined(MOZ_MEMORY)
 #  define HAVE_JEMALLOC_STATS 1
 #  include "mozmemory.h"
 #endif  // MOZ_MEMORY
 
 #if defined(XP_LINUX)
 
--- a/xpcom/base/nsMemoryReporterManager.h
+++ b/xpcom/base/nsMemoryReporterManager.h
@@ -7,17 +7,17 @@
 #ifndef nsMemoryReporterManager_h__
 #define nsMemoryReporterManager_h__
 
 #include "mozilla/Mutex.h"
 #include "nsHashKeys.h"
 #include "nsIMemoryReporter.h"
 #include "nsITimer.h"
 #include "nsServiceManagerUtils.h"
-#include "nsTHashtable.h"
+#include "nsDataHashtable.h"
 
 namespace mozilla {
 class MemoryReportingProcess;
 namespace dom {
 class MemoryReport;
 } // namespace dom
 } // namespace mozilla