зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1284455 - Kill uses of nsISystemMessagesInternal.h outside of b2g r=gsvelto
MozReview-Commit-ID: 8tVEvoF9kku --HG-- extra : rebase_source : 79ba0474395d8513e1287d45fbee201906a4eab2
This commit is contained in:
Родитель
af5fac74cc
Коммит
a45ac414af
|
@ -21,7 +21,9 @@
|
|||
#include "nsIDOMDOMRequest.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsISupportsPrimitives.h"
|
||||
#ifdef MOZ_B2G
|
||||
#include "nsISystemMessagesInternal.h"
|
||||
#endif
|
||||
#include "nsITabParent.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
|
@ -523,6 +525,8 @@ BrowserElementAudioChannel::NotifyChannel(const nsAString& aEvent,
|
|||
return request.forget().downcast<DOMRequest>();
|
||||
}
|
||||
|
||||
// TODO: We need this until bug 1254282 reaches m-c
|
||||
#ifdef MOZ_B2G
|
||||
nsCOMPtr<nsISystemMessagesInternal> systemMessenger =
|
||||
do_GetService("@mozilla.org/system-message-internal;1");
|
||||
MOZ_ASSERT(systemMessenger);
|
||||
|
@ -551,6 +555,9 @@ BrowserElementAudioChannel::NotifyChannel(const nsAString& aEvent,
|
|||
RefPtr<DOMRequest> request = new DOMRequest(GetOwner());
|
||||
RefPtr<RespondSuccessHandler> handler = new RespondSuccessHandler(request);
|
||||
promiseIns->AppendNativeHandler(handler);
|
||||
#else
|
||||
RefPtr<DOMRequest> request = new DOMRequest(GetOwner());
|
||||
#endif
|
||||
|
||||
return request.forget();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче