Chromium Code Reviews| Index: chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java |
| diff --git a/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java b/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java |
| index 55f43be0c0c571c4d6aa734370f709b2bb7b5907..92ed0765df11df0e4b365ab9abe01df3db79671b 100644 |
| --- a/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java |
| +++ b/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java |
| @@ -15,6 +15,7 @@ import org.chromium.chrome.browser.TabBase; |
| 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; |
| @@ -36,6 +37,12 @@ public class ChromiumTestShellActivity extends Activity { |
| if (!CommandLine.isInitialized()) CommandLine.initFromFile(COMMAND_LINE_FILE); |
| waitForDebuggerIfNeeded(); |
| + if (DeviceUtils.isTablet(this)) { |
| + CommandLine.getInstance().appendSwitch(DeviceUtils.TABLET_UI); |
|
Yaron
2012/10/09 21:40:18
Is there no shared place in java where we can do t
Yusuf
2012/10/09 21:46:32
How about DeviceUtils? Now that it is in content.
Yusuf
2012/10/10 00:06:08
Moved to DeviceUtils, calling from there for both
|
| + } else { |
| + CommandLine.getInstance().appendSwitch(CommandLine.USE_MOBILE_UA); |
| + } |
| + |
| initializeContentViewResources(); |
| ContentView.initChromiumBrowserProcess(this, ContentView.MAX_RENDERERS_AUTOMATIC); |