Bug 1329466 - Unbreak build on non-SPS platforms after bug 1323100. r?mstange draft
authorJan Beich <jbeich@FreeBSD.org>
Sun, 08 Jan 2017 03:04:48 +0000
changeset 457450 006864f07af520f3f10a33fefb43850b9ef7b3b8
parent 457446 d192a99be4b436f2dc839435319f7630d5d8f4b0
child 541473 d03e0bc718058dc552834ab6b37b83c689f6730c
push id40766
push userbmo:jbeich@FreeBSD.org
push dateSun, 08 Jan 2017 21:42:12 +0000
reviewersmstange
bugs1329466, 1323100
milestone53.0a1
Bug 1329466 - Unbreak build on non-SPS platforms after bug 1323100. r?mstange MozReview-Commit-ID: Af1CuVYSNCj
tools/profiler/public/GeckoProfiler.h
--- a/tools/profiler/public/GeckoProfiler.h
+++ b/tools/profiler/public/GeckoProfiler.h
@@ -241,24 +241,29 @@ static inline void profiler_js_operation
 static inline double profiler_time() { return 0; }
 static inline double profiler_time(const mozilla::TimeStamp& aTime) { return 0; }
 
 static inline bool profiler_in_privacy_mode() { return false; }
 
 static inline void profiler_log(const char *str) {}
 static inline void profiler_log(const char *fmt, va_list args) {}
 
+namespace mozilla {
+
 class AutoProfilerRegister final MOZ_STACK_CLASS
 {
-  AutoProfilerRegister(const char* aName) {}
+public:
+  explicit AutoProfilerRegister(const char* aName) {}
 private:
   AutoProfilerRegister(const AutoProfilerRegister&) = delete;
   AutoProfilerRegister& operator=(const AutoProfilerRegister&) = delete;
 };
 
+} // namespace mozilla
+
 #else
 
 #include "GeckoProfilerImpl.h"
 
 #endif
 
 class MOZ_RAII GeckoProfilerInitRAII {
 public: