mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
b12c5b9ea0
commit
ab81b8552f
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user