Index: content/public/android/java/src/org/chromium/content/browser/DeviceUtils.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/DeviceUtils.java b/content/public/android/java/src/org/chromium/content/browser/DeviceUtils.java |
index 17c82359343885dd49dc599272fa210133fc071f..e960a1719e652fbdefeb479a865ab963ed656710 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/DeviceUtils.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/DeviceUtils.java |
@@ -20,7 +20,6 @@ public class DeviceUtils { |
*/ |
private static final int MINIMUM_TABLET_WIDTH_DP = 600; |
- private static Boolean sIsTv = null; |
private static Boolean sIsTablet = null; |
/** |
@@ -29,10 +28,6 @@ public class DeviceUtils { |
*/ |
public static boolean isTablet(Context context) { |
if (sIsTablet == null) { |
- if (isTv(context)) { |
- sIsTablet = true; |
- return sIsTablet; |
- } |
int minimumScreenWidthDp = context.getResources().getConfiguration(). |
smallestScreenWidthDp; |
sIsTablet = minimumScreenWidthDp >= MINIMUM_TABLET_WIDTH_DP; |
@@ -41,26 +36,6 @@ public class DeviceUtils { |
} |
/** |
- * Checks if the device should be treated as TV. Note that this should be |
- * invoked before {@link #isTablet(Context)} to get the correct result |
- * since they are not orthogonal. |
- * |
- * @param context Android context |
- * @return {@code true} if the device should be treated as TV. |
- */ |
- public static boolean isTv(Context context) { |
- if (sIsTv == null) { |
- PackageManager manager = context.getPackageManager(); |
- if (manager != null) { |
- sIsTv = manager.hasSystemFeature(PackageManager.FEATURE_TELEVISION); |
- return sIsTv; |
- } |
- sIsTv = false; |
- } |
- return sIsTv; |
- } |
- |
- /** |
* Appends the switch specifying which user agent should be used for this device. |
* @param context The context for the caller activity. |
*/ |