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

Unified Diff: chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.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/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);

Powered by Google App Engine
This is Rietveld 408576698