Bug 1241591 - Switch onboarding to A version only. r=margaret a=sylvestre
authorChenxia Liu <liuche@mozilla.com>
Thu, 21 Jan 2016 12:17:59 -0800
changeset 310955 fa3cde1291744ba44d43ec9790bbf4d13af61b59
parent 310954 1fa9b8e51c285b27bf7730655d7c0385d83383f8
child 310956 23056818e2a5759d863da75aa6e7c9fd104d9350
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, sylvestre
bugs1241591
milestone45.0a2
Bug 1241591 - Switch onboarding to A version only. r=margaret a=sylvestre
mobile/android/base/java/org/mozilla/gecko/firstrun/FirstrunPagerConfig.java
--- a/mobile/android/base/java/org/mozilla/gecko/firstrun/FirstrunPagerConfig.java
+++ b/mobile/android/base/java/org/mozilla/gecko/firstrun/FirstrunPagerConfig.java
@@ -42,21 +42,18 @@ public class FirstrunPagerConfig {
     }
 
     /*
      * Wrapper method for using local bucketing rather than server-side.
      * This needs to match the server-side bucketing used on mozilla-switchboard.herokuapp.com.
      */
     private static boolean isInExperimentLocal(Context context, String name) {
         if (AppConstants.MOZ_SWITCHBOARD) {
-            if (SwitchBoard.isInBucket(context, 0, 50)) {
-                return ONBOARDING_A.equals(name);
-            } else if (SwitchBoard.isInBucket(context, 50, 100)) {
-                return ONBOARDING_B.equals(name);
-            }
+          // Only show Onboarding A.
+          return ONBOARDING_A.equals(name);
         }
         return false;
     }
 
     public static List<FirstrunPanelConfig> getRestricted() {
         final List<FirstrunPanelConfig> panels = new LinkedList<>();
         panels.add(new FirstrunPanelConfig(RestrictedWelcomePanel.class.getName(), RestrictedWelcomePanel.TITLE_RES));
         return panels;