Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing implementation for the EmedLiteXulAppInfo
  • Loading branch information
rainemak committed Apr 8, 2020
1 parent 95ed6c9 commit 55fc01a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions embedding/embedlite/utils/EmbedLiteXulAppInfo.cpp
Expand Up @@ -4,6 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "EmbedLog.h"

#include "EmbedLiteXulAppInfo.h"
#include "nsServiceManagerUtils.h"
#include "nsIComponentRegistrar.h"
Expand All @@ -15,6 +17,8 @@
#include "nsStringGlue.h"
#include "EmbedLiteAppThreadChild.h"

#include "mozilla/Unused.h"

#if defined(ACCESSIBILITY)
#include "nsAccessibilityService.h"
#endif
Expand Down Expand Up @@ -155,6 +159,24 @@ EmbedLiteXulAppInfo::GetIsOfficial(bool* aResult)
return NS_OK;
}

NS_IMETHODIMP
EmbedLiteXulAppInfo::GetWindowsDLLBlocklistStatus(bool* aResult)
{
*aResult = false;
return NS_OK;
}

NS_IMETHODIMP
EmbedLiteXulAppInfo::GetIsReleaseOrBeta(bool* aResult)
{
#ifdef RELEASE_OR_BETA
*aResult = true;
#else
*aResult = false;
#endif
return NS_OK;
}

NS_IMETHODIMP EmbedLiteXulAppInfo::GetIsOfficialBranding(bool* aResult)
{
#ifdef MOZ_OFFICIAL_BRANDING
Expand Down Expand Up @@ -188,13 +210,28 @@ EmbedLiteXulAppInfo::GetProcessID(uint32_t* aResult)
return NS_OK;
}

NS_IMETHODIMP
EmbedLiteXulAppInfo::GetUniqueProcessID(uint64_t* aResult)
{
*aResult = 0;
return NS_OK;
}

NS_IMETHODIMP
EmbedLiteXulAppInfo::GetBrowserTabsRemoteAutostart(bool* aResult)
{
*aResult = false;
return NS_OK;
}

NS_IMETHODIMP
EmbedLiteXulAppInfo::GetMultiprocessBlockPolicy(uint32_t* aResult)
{
LOGNI();
*aResult = 0;
return NS_OK;
}

NS_IMETHODIMP
EmbedLiteXulAppInfo::GetAccessibilityEnabled(bool* aResult)
{
Expand Down

0 comments on commit 55fc01a

Please sign in to comment.