diff --git a/mobile/android/base/tests/testEventDispatcher.java b/mobile/android/base/tests/testEventDispatcher.java index b1206dbf4b8..c879c9d4f54 100644 --- a/mobile/android/base/tests/testEventDispatcher.java +++ b/mobile/android/base/tests/testEventDispatcher.java @@ -84,9 +84,9 @@ public class testEventDispatcher extends UITest } else if (GECKO_RESPONSE_EVENT.equals(event)) { final String response = message.getString("response"); if ("success".equals(response)) { - EventDispatcher.getInstance().sendResponse(message, response); + EventDispatcher.sendResponse(message, response); } else if ("error".equals(response)) { - EventDispatcher.getInstance().sendError(message, response); + EventDispatcher.sendError(message, response); } else { fFail("Response type should be valid: " + response); } diff --git a/mobile/android/base/tests/testImportFromAndroid.java b/mobile/android/base/tests/testImportFromAndroid.java index d22034c9dff..71c8e70c89b 100644 --- a/mobile/android/base/tests/testImportFromAndroid.java +++ b/mobile/android/base/tests/testImportFromAndroid.java @@ -163,13 +163,12 @@ public class testImportFromAndroid extends AboutHomeTest { // Return bookmarks or history depending on what the user asks for ArrayList urls = new ArrayList(); ContentResolver resolver = getActivity().getContentResolver(); - Browser mBrowser = new Browser(); Cursor cursor = null; try { if (data.equals("history")) { - cursor = mBrowser.getAllVisitedUrls(resolver); + cursor = Browser.getAllVisitedUrls(resolver); } else if (data.equals("bookmarks")) { - cursor = mBrowser.getAllBookmarks(resolver); + cursor = Browser.getAllBookmarks(resolver); } if (cursor != null) { cursor.moveToFirst();