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

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

Issue 11066087: Upstream BrowserChildProcessHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/DeviceUtils.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/DeviceUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/DeviceUtils.java
deleted file mode 100644
index bfba7ccddcc3bff6aa02d1c1119cfe8379d6f312..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/DeviceUtils.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser;
-
-import android.content.Context;
-
-/**
- * A utility class that has helper methods for device configuration.
- */
-public class DeviceUtils {
-
- /**
- * The minimum width that would classify the device as a tablet.
- */
- private static final int MINIMUM_TABLET_WIDTH_DP = 600;
-
- /**
- * @param context Android's context
- * @return Whether the app is should treat the device as a tablet for layout.
- */
- public static boolean isTablet(Context context) {
- int minimumScreenWidthDp = context.getResources().getConfiguration().smallestScreenWidthDp;
- return minimumScreenWidthDp >= MINIMUM_TABLET_WIDTH_DP;
- }
-
-}

Powered by Google App Engine
This is Rietveld 408576698