Skip to content

Commit

Permalink
Bug 1683540 - Make extensions buildable outside of unified-build
Browse files Browse the repository at this point in the history
…environment. r=sg

Differential Revision: https://phabricator.services.mozilla.com/D100208
  • Loading branch information
abpostelnicu committed Jan 4, 2021
1 parent b6b336c commit 8f28b5c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions build/non-unified-compat
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,8 @@ editor/libeditor/
editor/reftests/
editor/spellchecker/
editor/txmgr/
extensions/auth/
extensions/permissions/
extensions/pref/
extensions/spellcheck/
extensions/universalchardet/
1 change: 1 addition & 0 deletions extensions/permissions/PermissionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "mozStorageCID.h"

#include "nsAppDirectoryServiceDefs.h"
#include "nsComponentManagerUtils.h"
#include "nsContentUtils.h"
#include "nsCRT.h"
#include "nsEffectiveTLDService.h"
Expand Down
3 changes: 3 additions & 0 deletions extensions/pref/autoconfig/src/nsReadConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
#include "nsReadConfig.h"
#include "nsJSConfigTriggers.h"

#include "mozilla/Logging.h"
#include "mozilla/Components.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsIAppStartup.h"
#include "nsIChannel.h"
#include "nsContentUtils.h"
#include "nsDirectoryServiceDefs.h"
#include "nsIFile.h"
#include "nsIInputStream.h"
#include "nsIObserverService.h"
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
Expand Down
2 changes: 1 addition & 1 deletion extensions/spellcheck/src/mozInlineSpellWordUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ nsresult mozInlineSpellWordUtil::SetPositionAndEnd(nsINode* aPositionNode,
return NS_ERROR_FAILURE;
}

if (ShadowRoot::FromNode(rootNode)) {
if (mozilla::dom::ShadowRoot::FromNode(rootNode)) {
mRootNode = rootNode;
}
}
Expand Down
7 changes: 4 additions & 3 deletions extensions/spellcheck/src/mozSpellChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ nsresult mozSpellChecker::NextMisspelledWord(nsAString& aWord,
return NS_OK;
}

RefPtr<CheckWordPromise> mozSpellChecker::CheckWords(
RefPtr<mozilla::CheckWordPromise> mozSpellChecker::CheckWords(
const nsTArray<nsString>& aWords) {
if (XRE_IsContentProcess()) {
return mEngine->CheckWords(aWords);
Expand All @@ -125,11 +125,12 @@ RefPtr<CheckWordPromise> mozSpellChecker::CheckWords(
bool misspelled;
nsresult rv = CheckWord(word, &misspelled, nullptr);
if (NS_WARN_IF(NS_FAILED(rv))) {
return CheckWordPromise::CreateAndReject(rv, __func__);
return mozilla::CheckWordPromise::CreateAndReject(rv, __func__);
}
misspells.AppendElement(misspelled);
}
return CheckWordPromise::CreateAndResolve(std::move(misspells), __func__);
return mozilla::CheckWordPromise::CreateAndResolve(std::move(misspells),
__func__);
}

nsresult mozSpellChecker::CheckWord(const nsAString& aWord, bool* aIsMisspelled,
Expand Down

0 comments on commit 8f28b5c

Please sign in to comment.