From ddd92794b29c06ee44c289f5c22d10a02b760996 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Mon, 12 Jun 2017 08:57:45 +0200 Subject: [PATCH] Backed out changeset 3c03b94342b9 (bug 1329152) --- .../android/base/java/org/mozilla/gecko/Experiments.java | 3 --- .../base/java/org/mozilla/gecko/LauncherActivity.java | 8 +------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/mobile/android/base/java/org/mozilla/gecko/Experiments.java b/mobile/android/base/java/org/mozilla/gecko/Experiments.java index 57029dd22c12..f462a8e9bca3 100644 --- a/mobile/android/base/java/org/mozilla/gecko/Experiments.java +++ b/mobile/android/base/java/org/mozilla/gecko/Experiments.java @@ -65,9 +65,6 @@ public class Experiments { // Enable Activity stream by default for users in the "opt out" group. public static final String ACTIVITY_STREAM_OPT_OUT = "activity-stream-opt-out"; - // User in this group will enable Custom Tabs - public static final String CUSTOM_TABS = "custom-tabs"; - // Tabs tray: Arrange tabs in two columns in portrait mode public static final String COMPACT_TABS = "compact-tabs"; diff --git a/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java b/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java index 0379ba447460..7c21f4aaea56 100644 --- a/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java +++ b/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java @@ -6,7 +6,6 @@ package org.mozilla.gecko; import android.app.Activity; -import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; @@ -15,7 +14,6 @@ import android.support.customtabs.CustomTabsIntent; import android.util.Log; import org.mozilla.gecko.home.HomeConfig; -import org.mozilla.gecko.switchboard.SwitchBoard; import org.mozilla.gecko.webapps.WebAppActivity; import org.mozilla.gecko.webapps.WebAppIndexer; import org.mozilla.gecko.customtabs.CustomTabsActivity; @@ -67,7 +65,7 @@ public class LauncherActivity extends Activity { } else if (!isViewIntentWithURL(safeIntent)) { dispatchNormalIntent(); - } else if (isCustomTabsIntent(safeIntent) && isCustomTabsEnabled(this) ) { + } else if (isCustomTabsIntent(safeIntent)) { dispatchCustomTabsIntent(); // Can we dispatch this VIEW action intent to the tab queue service? @@ -149,10 +147,6 @@ public class LauncherActivity extends Activity { && safeIntent.getDataString() != null; } - private static boolean isCustomTabsEnabled(@NonNull final Context context) { - return SwitchBoard.isInExperiment(context, Experiments.CUSTOM_TABS); - } - private static boolean isCustomTabsIntent(@NonNull final SafeIntent safeIntent) { return isViewIntentWithURL(safeIntent) && safeIntent.hasExtra(CustomTabsIntent.EXTRA_SESSION);