Bug 1710989 - Apply linter fixes in IdleScheduler code r=smaug DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D115328
This commit is contained in:
Paul Bone 2021-05-19 02:30:24 +00:00
Родитель 78a8d179f4
Коммит 782bfdaa70
2 изменённых файлов: 4 добавлений и 8 удалений

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

@ -12,8 +12,7 @@
#include "mozilla/Telemetry.h" #include "mozilla/Telemetry.h"
#include "BackgroundChild.h" #include "BackgroundChild.h"
namespace mozilla { namespace mozilla::ipc {
namespace ipc {
static IdleSchedulerChild* sMainThreadIdleScheduler = nullptr; static IdleSchedulerChild* sMainThreadIdleScheduler = nullptr;
@ -122,5 +121,4 @@ IdleSchedulerChild* IdleSchedulerChild::GetMainThreadIdleScheduler() {
return sMainThreadIdleScheduler; return sMainThreadIdleScheduler;
} }
} // namespace ipc } // namespace mozilla::ipc
} // namespace mozilla

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

@ -14,8 +14,7 @@
#include "nsITimer.h" #include "nsITimer.h"
#include "nsIThread.h" #include "nsIThread.h"
namespace mozilla { namespace mozilla::ipc {
namespace ipc {
base::SharedMemory* IdleSchedulerParent::sActiveChildCounter = nullptr; base::SharedMemory* IdleSchedulerParent::sActiveChildCounter = nullptr;
std::bitset<NS_IDLE_SCHEDULER_COUNTER_ARRAY_LENGHT> std::bitset<NS_IDLE_SCHEDULER_COUNTER_ARRAY_LENGHT>
@ -452,5 +451,4 @@ void IdleSchedulerParent::StarvationCallback(nsITimer* aTimer, void* aData) {
NS_RELEASE(sStarvationPreventer); NS_RELEASE(sStarvationPreventer);
} }
} // namespace ipc } // namespace mozilla::ipc
} // namespace mozilla