mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00
Bug 902938 - part 1 - add androidBridge to Services.jsm; r=Mossop
This commit is contained in:
parent
1bcaecd89a
commit
f80e8996da
@ -37,6 +37,9 @@ XPCOMUtils.defineLazyGetter(Services, "dirsvc", function () {
|
||||
});
|
||||
|
||||
let initTable = [
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
["androidBridge", "@mozilla.org/android/bridge;1", "nsIAndroidBridge"],
|
||||
#endif
|
||||
["appShell", "@mozilla.org/appshell/appShellService;1", "nsIAppShellService"],
|
||||
["cache", "@mozilla.org/network/cache-service;1", "nsICacheService"],
|
||||
["console", "@mozilla.org/consoleservice;1", "nsIConsoleService"],
|
||||
|
@ -70,6 +70,9 @@ function run_test()
|
||||
if ("nsIBrowserSearchService" in Ci) {
|
||||
checkService("search", Ci.nsIBrowserSearchService);
|
||||
}
|
||||
if ("nsIAndroidBridge" in Ci) {
|
||||
checkService("androidBridge", Ci.nsIAndroidBridge);
|
||||
}
|
||||
|
||||
// In xpcshell tests, the "@mozilla.org/xre/app-info;1" component implements
|
||||
// only the nsIXULRuntime interface, but not nsIXULAppInfo. To test the
|
||||
|
Loading…
x
Reference in New Issue
Block a user