summaryrefslogtreecommitdiffstats
path: root/mobile/android/test_runner/src
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/test_runner/src')
-rw-r--r--mobile/android/test_runner/src/main/java/org/mozilla/geckoview/test_runner/TestRunnerActivity.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile/android/test_runner/src/main/java/org/mozilla/geckoview/test_runner/TestRunnerActivity.java b/mobile/android/test_runner/src/main/java/org/mozilla/geckoview/test_runner/TestRunnerActivity.java
index 399f9417c2..0017298b86 100644
--- a/mobile/android/test_runner/src/main/java/org/mozilla/geckoview/test_runner/TestRunnerActivity.java
+++ b/mobile/android/test_runner/src/main/java/org/mozilla/geckoview/test_runner/TestRunnerActivity.java
@@ -174,7 +174,7 @@ public class TestRunnerActivity extends Activity {
public GeckoResult<AllowOrDeny> onLoadRequest(
final GeckoSession session, final LoadRequest request) {
// Allow Gecko to load all URIs
- return GeckoResult.fromValue(AllowOrDeny.ALLOW);
+ return GeckoResult.allow();
}
@Override
@@ -296,7 +296,7 @@ public class TestRunnerActivity extends Activity {
public GeckoResult<AllowOrDeny> onCloseTab(
@Nullable final WebExtension source, @NonNull final GeckoSession session) {
closeSession(session);
- return GeckoResult.fromValue(AllowOrDeny.ALLOW);
+ return GeckoResult.allow();
}
@Override
@@ -310,7 +310,7 @@ public class TestRunnerActivity extends Activity {
mOwnedSessions.addFirst(session);
}
- return GeckoResult.fromValue(AllowOrDeny.ALLOW);
+ return GeckoResult.allow();
}
};