Bug 1489844 - Port DOMPrefs to StaticPrefs - part 24 - dom_performance_enable_scheduler_timing, r=ehsan

This commit is contained in:
Andrea Marchesini 2018-09-10 20:36:18 +02:00
Родитель 53323036ee
Коммит 7b40fcb2a2
4 изменённых файлов: 2 добавлений и 11 удалений

Просмотреть файл

@ -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();
/**