mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1489844 - Port DOMPrefs to StaticPrefs - part 24 - dom_performance_enable_scheduler_timing, r=ehsan
This commit is contained in:
parent
53323036ee
commit
7b40fcb2a2
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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",
|
||||
|
@ -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<sequence<PerformanceInfoDictionary>> requestPerformanceMetrics();
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user