Bug 1592226 - Only build 'AbortOrientationPromises' when MOZ_WIDGET_ANDROID is defined r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D50912

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sylvestre Ledru 2019-10-29 13:08:37 +00:00
parent 69d003b435
commit 0b21c7eb2c

View File

@ -248,6 +248,7 @@ already_AddRefed<Promise> ScreenOrientation::Lock(
return LockInternal(orientation, aRv);
}
#if defined(MOZ_WIDGET_ANDROID)
static inline void AbortOrientationPromises(nsIDocShell* aDocShell) {
MOZ_ASSERT(aDocShell);
@ -273,6 +274,7 @@ static inline void AbortOrientationPromises(nsIDocShell* aDocShell) {
}
}
}
#endif
already_AddRefed<Promise> ScreenOrientation::LockInternal(
hal::ScreenOrientation aOrientation, ErrorResult& aRv) {