Index: content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java |
diff --git a/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java b/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java |
index f15f269b92ee22a53fedf5f11a48c7da1c6f5b40..bec5faf94b637d0faf3b72eaf8d1c8f481b2e399 100644 |
--- a/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java |
+++ b/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java |
@@ -14,6 +14,7 @@ import android.view.KeyEvent; |
import org.chromium.content.app.AppResource; |
import org.chromium.content.app.LibraryLoader; |
import org.chromium.content.browser.ContentView; |
+import org.chromium.content.browser.DeviceUtils; |
import org.chromium.content.common.CommandLine; |
import org.chromium.ui.gfx.ActivityNativeWindow; |
@@ -39,6 +40,12 @@ public class ContentShellActivity extends Activity { |
if (!CommandLine.isInitialized()) CommandLine.initFromFile(COMMAND_LINE_FILE); |
waitForDebuggerIfNeeded(); |
+ if (DeviceUtils.isTablet(this)) { |
+ CommandLine.getInstance().appendSwitch(DeviceUtils.TABLET_UI); |
+ } else { |
+ CommandLine.getInstance().appendSwitch(CommandLine.USE_MOBILE_UA); |
+ } |
+ |
LibraryLoader.loadAndInitSync(); |
initializeContentViewResources(); |