Bug 902938 - part 1 - add androidBridge to Services.jsm; r=Mossop

This commit is contained in:
Nathan Froyd 2013-08-08 10:57:34 -04:00
Родитель 1bcaecd89a
Коммит f80e8996da
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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