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

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

Issue 1854253002: Disable document mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning Created 4 years, 8 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 d9bebadabab41ed00fc3a6e55dfb855659e322a8..d0d01f7ee9feed56dd0d9c677a07626ffc619203 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
@@ -48,8 +48,6 @@ public class FeatureUtilities {
private static String sCachedHerbFlavor;
private static boolean sIsHerbFlavorCached;
- private static Boolean sIsForcedToMigrate;
-
/** Used to track if cached command line flags should be refreshed. */
private static CommandLine.ResetListener sResetListener = null;
@@ -198,19 +196,6 @@ public class FeatureUtilities {
}
/**
- * @return Whether or not users are being forced to migrate to tabbed mode.
- */
- public static boolean isForcedToMigrateToTabbedMode() {
- if (sIsForcedToMigrate == null) {
- Context context = ApplicationStatus.getApplicationContext();
- sIsForcedToMigrate =
- ChromePreferenceManager.getInstance(context).getCachedIsForcedToMigrate();
- }
-
- return sIsForcedToMigrate;
- }
-
- /**
* @return Which flavor of Herb is being tested. See {@link ChromeSwitches#HERB_FLAVOR_ANISE}
* and its related switches.
*/
@@ -242,17 +227,6 @@ public class FeatureUtilities {
*/
public static void cacheNativeFlags() {
cacheHerbFlavor();
-
- // Check whether the user is being forced to migrate.
- CommandLine instance = CommandLine.getInstance();
- boolean wasForcedToMigrate = isForcedToMigrateToTabbedMode();
- boolean forceMigration = instance.hasSwitch(
- ChromeSwitches.ENABLE_FORCED_MIGRATION_TO_TABBED_MODE);
- if (wasForcedToMigrate != forceMigration) {
- Context context = ApplicationStatus.getApplicationContext();
- ChromePreferenceManager.getInstance(context).setCachedIsForcedToMigrate(forceMigration);
- sIsForcedToMigrate = forceMigration;
- }
}
/**

Powered by Google App Engine
This is Rietveld 408576698