Bug 1342636 - Part 2: Switch to using the fallback implementation of GetCurrentScreenConfiguration in the content process; r=kanru

This uses the underlying XPCOM API which works based on asyncronous
IPC.
This commit is contained in:
Ehsan Akhgari 2017-03-08 22:32:24 -05:00
parent 48c08aeda9
commit f5d7e843c0

View File

@ -15,6 +15,7 @@
#include "mozilla/dom/battery/Types.h"
#include "mozilla/dom/network/Types.h"
#include "mozilla/dom/ScreenOrientation.h"
#include "mozilla/fallback/FallbackScreenConfiguration.h"
#include "mozilla/Observer.h"
#include "mozilla/Unused.h"
#include "nsAutoPtr.h"
@ -118,7 +119,7 @@ DisableScreenConfigurationNotifications()
void
GetCurrentScreenConfiguration(ScreenConfiguration* aScreenConfiguration)
{
Hal()->SendGetCurrentScreenConfiguration(aScreenConfiguration);
fallback::GetCurrentScreenConfiguration(aScreenConfiguration);
}
bool