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

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

Issue 62333025: [Android] Move CommandLine.java to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 1 month 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: 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 523e2ec611c73dc52caeadae771b9e72dd0f1fe9..f6478dbdd1afa24f2428eaa7971dbd25340a6bac 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
@@ -7,7 +7,8 @@ package org.chromium.content.browser;
import android.content.Context;
import android.content.pm.PackageManager;
-import org.chromium.content.common.CommandLine;
+import org.chromium.base.CommandLine;
+import org.chromium.content.common.ContentSwitches;
/**
* A utility class that has helper methods for device configuration.
@@ -65,9 +66,9 @@ public class DeviceUtils {
*/
public static void addDeviceSpecificUserAgentSwitch(Context context) {
if (isTablet(context)) {
- CommandLine.getInstance().appendSwitch(CommandLine.TABLET_UI);
+ CommandLine.getInstance().appendSwitch(ContentSwitches.TABLET_UI);
} else {
- CommandLine.getInstance().appendSwitch(CommandLine.USE_MOBILE_UA);
+ CommandLine.getInstance().appendSwitch(ContentSwitches.USE_MOBILE_UA);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698