Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java

Issue 2371003003: Remove non-elderberry herb flavors. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java b/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java
index b8aaa420635bac34089bd76b4e191d0d0e8b00ff..6ca74c2f130559a11d69ba3e7ab1eda61f769334 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java
@@ -154,8 +154,8 @@ public class FeatureUtilities {
}
/**
- * @return Which flavor of Herb is being tested. See {@link ChromeSwitches#HERB_FLAVOR_ANISE}
- * and its related switches.
+ * @return Which flavor of Herb is being tested.
+ * See {@link ChromeSwitches#HERB_FLAVOR_ELDERBERRY} and its related switches.
*/
public static String getHerbFlavor() {
Context context = ContextUtils.getApplicationContext();
@@ -207,14 +207,6 @@ public class FeatureUtilities {
|| newFlavor.startsWith(ChromeSwitches.HERB_FLAVOR_CONTROL)
|| newFlavor.startsWith(ChromeSwitches.HERB_FLAVOR_DEFAULT)) {
gone 2016/09/28 16:45:46 Should this just be the "else" clause to catch all
Ted C 2016/09/28 23:21:38 Done, although I don't "think" this is necessary (
newFlavor = ChromeSwitches.HERB_FLAVOR_DISABLED;
- } else if (newFlavor.startsWith(ChromeSwitches.HERB_FLAVOR_ANISE)) {
- newFlavor = ChromeSwitches.HERB_FLAVOR_ANISE;
- } else if (newFlavor.startsWith(ChromeSwitches.HERB_FLAVOR_BASIL)) {
- newFlavor = ChromeSwitches.HERB_FLAVOR_BASIL;
- } else if (newFlavor.startsWith(ChromeSwitches.HERB_FLAVOR_CHIVE)) {
- newFlavor = ChromeSwitches.HERB_FLAVOR_CHIVE;
- } else if (newFlavor.startsWith(ChromeSwitches.HERB_FLAVOR_DILL)) {
- newFlavor = ChromeSwitches.HERB_FLAVOR_DILL;
} else if (newFlavor.startsWith(ChromeSwitches.HERB_FLAVOR_ELDERBERRY)) {
newFlavor = ChromeSwitches.HERB_FLAVOR_ELDERBERRY;
}
@@ -222,14 +214,6 @@ public class FeatureUtilities {
CommandLine instance = CommandLine.getInstance();
if (instance.hasSwitch(ChromeSwitches.HERB_FLAVOR_DISABLED_SWITCH)) {
newFlavor = ChromeSwitches.HERB_FLAVOR_DISABLED;
- } else if (instance.hasSwitch(ChromeSwitches.HERB_FLAVOR_ANISE_SWITCH)) {
- newFlavor = ChromeSwitches.HERB_FLAVOR_ANISE;
- } else if (instance.hasSwitch(ChromeSwitches.HERB_FLAVOR_BASIL_SWITCH)) {
- newFlavor = ChromeSwitches.HERB_FLAVOR_BASIL;
- } else if (instance.hasSwitch(ChromeSwitches.HERB_FLAVOR_CHIVE_SWITCH)) {
- newFlavor = ChromeSwitches.HERB_FLAVOR_CHIVE;
- } else if (instance.hasSwitch(ChromeSwitches.HERB_FLAVOR_DILL_SWITCH)) {
- newFlavor = ChromeSwitches.HERB_FLAVOR_DILL;
} else if (instance.hasSwitch(ChromeSwitches.HERB_FLAVOR_ELDERBERRY_SWITCH)) {
newFlavor = ChromeSwitches.HERB_FLAVOR_ELDERBERRY;
}

Powered by Google App Engine
This is Rietveld 408576698