Bug 1265275 - Replaced using namespace mozilla; & using namespace mozilla::dom; with namespace mozilla{..} & namespace dom{..} in PresentationRequest.cpp. Added scope resolution to the NS_CreatePresentationService() definition in PresentationService.cpp r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D86470
This commit is contained in:
pctopgs 2020-08-09 14:53:57 +00:00
parent b12c5b9ea0
commit ab81b8552f
2 changed files with 9 additions and 4 deletions

View File

@ -31,8 +31,8 @@
#include "nsSandboxFlags.h"
#include "nsServiceManagerUtils.h"
using namespace mozilla;
using namespace mozilla::dom;
namespace mozilla {
namespace dom {
NS_IMPL_ADDREF_INHERITED(PresentationRequest, DOMEventTargetHelper)
NS_IMPL_RELEASE_INHERITED(PresentationRequest, DOMEventTargetHelper)
@ -524,3 +524,6 @@ bool PresentationRequest::IsAllURLAuthenticated() {
return true;
}
} // namespace dom
} // namespace mozilla

View File

@ -1102,8 +1102,10 @@ already_AddRefed<nsIPresentationService> NS_CreatePresentationService() {
if (XRE_GetProcessType() == GeckoProcessType_Content) {
service = new mozilla::dom::PresentationIPCService();
} else {
service = new PresentationService();
if (NS_WARN_IF(!static_cast<PresentationService*>(service.get())->Init())) {
service = new mozilla::dom::PresentationService();
if (NS_WARN_IF(
!static_cast<mozilla::dom::PresentationService*>(service.get())
->Init())) {
return nullptr;
}
}