зеркало из https://github.com/mozilla/gecko-dev.git
Bug 902938 - part 1 - add androidBridge to Services.jsm; r=Mossop
This commit is contained in:
Родитель
1bcaecd89a
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче