From 7b40fcb2a21053fe299c5757be4287ef5c1a38f5 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Mon, 10 Sep 2018 20:36:18 +0200 Subject: [PATCH] Bug 1489844 - Port DOMPrefs to StaticPrefs - part 24 - dom_performance_enable_scheduler_timing, r=ehsan --- dom/base/DOMPrefs.cpp | 6 ------ dom/base/DOMPrefs.h | 3 --- dom/base/DOMPrefsInternal.h | 2 +- dom/chrome-webidl/ChromeUtils.webidl | 2 +- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/dom/base/DOMPrefs.cpp b/dom/base/DOMPrefs.cpp index 551ef5752c35..d9c93e5943e2 100644 --- a/dom/base/DOMPrefs.cpp +++ b/dom/base/DOMPrefs.cpp @@ -87,12 +87,6 @@ DOMPrefs::DumpEnabled() } #endif -/* static */ bool -DOMPrefs::SchedulerTimingEnabled() -{ - return mozilla::StaticPrefs::dom_performance_enable_scheduler_timing(); -} - #include "DOMPrefsInternal.h" #undef DOM_PREF diff --git a/dom/base/DOMPrefs.h b/dom/base/DOMPrefs.h index 2f89b9c04de8..597378d53e89 100644 --- a/dom/base/DOMPrefs.h +++ b/dom/base/DOMPrefs.h @@ -19,9 +19,6 @@ public: // Returns true if the browser.dom.window.dump.enabled pref is set. static bool DumpEnabled(); - // Returns true if the dom.performance.enable_scheduler_timing is set - static bool SchedulerTimingEnabled(); - #define DOM_PREF(name, pref) static bool name(); #define DOM_WEBIDL_PREF(name) static bool name(JSContext* aCx, JSObject* aObj); #define DOM_WEBIDL_PREF2(name) static bool name(JSContext* aCx, JSObject* aObj); diff --git a/dom/base/DOMPrefsInternal.h b/dom/base/DOMPrefsInternal.h index 760f2f072fa1..f7f54cf02c1b 100644 --- a/dom/base/DOMPrefsInternal.h +++ b/dom/base/DOMPrefsInternal.h @@ -33,7 +33,7 @@ DOM_WEBIDL_PREF2(dom_webkitBlink_dirPicker_enabled) DOM_WEBIDL_PREF2(dom_netinfo_enabled) DOM_WEBIDL_PREF2(dom_fetchObserver_enabled) DOM_WEBIDL_PREF2(dom_enable_performance_observer) -DOM_WEBIDL_PREF(SchedulerTimingEnabled) +DOM_WEBIDL_PREF2(dom_performance_enable_scheduler_timing) DOM_UINT32_PREF(WorkerCancelingTimeoutMillis, "dom.worker.canceling.timeoutMilliseconds", diff --git a/dom/chrome-webidl/ChromeUtils.webidl b/dom/chrome-webidl/ChromeUtils.webidl index 2d93e4e3ca20..20c3076478c8 100644 --- a/dom/chrome-webidl/ChromeUtils.webidl +++ b/dom/chrome-webidl/ChromeUtils.webidl @@ -347,7 +347,7 @@ partial namespace ChromeUtils { /** * Request performance metrics to the current process & all content processes. */ - [Throws, Func="DOMPrefs::SchedulerTimingEnabled"] + [Throws, Func="DOMPrefs::dom_performance_enable_scheduler_timing"] Promise> requestPerformanceMetrics(); /**