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

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

Issue 2141783002: Remove obsolete flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 ac6b2e441bcdc913216f12240c002e0b7c86494d..dc0b7db7afffee997957ce4a222527c04e1a1e19 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
@@ -157,30 +157,6 @@ public class FeatureUtilities {
nativeSetIsInMultiWindowMode(isInMultiWindowMode);
}
- /**
- * Check whether tab switching is enabled for the current context.
- * Note that this may return false if native library is not yet ready.
- * @param context The context
- * @return Whether tab switching is enabled for the current context.
- */
- public static boolean isTabSwitchingEnabled(Context context) {
- return !isDocumentMode(context) || isTabSwitchingEnabledInDocumentModeInternal();
- }
-
- /**
- * Check whether tab switching is enabled in document mode.
- * Note that this may return false if native library is not yet ready.
- * @return Whether tab switching is enabled in document mode.
- */
- public static boolean isTabSwitchingEnabledInDocumentMode(Context context) {
- return isDocumentMode(context) && isTabSwitchingEnabledInDocumentModeInternal();
- }
-
- private static boolean isTabSwitchingEnabledInDocumentModeInternal() {
- return CommandLine.getInstance().hasSwitch(
- ChromeSwitches.ENABLE_TAB_SWITCHER_IN_DOCUMENT_MODE);
- }
-
private static boolean isHerbDisallowed(Context context) {
return isDocumentMode(context) || ChromeVersionInfo.isStableBuild()
|| ChromeVersionInfo.isBetaBuild() || DeviceFormFactor.isTablet(context);
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698