diff options
author | jdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-20 03:01:07 +0000 |
---|---|---|
committer | jdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-20 03:01:07 +0000 |
commit | b873bc8b51dbee1193f3e6b48db0d08a86e3badc (patch) | |
tree | 4e5ef2799807c547deb9af271b3af6b5a77fb635 /content/shell/android | |
parent | ccb962dfd9abe9fe9c990372a56e04cc9aa8ddb8 (diff) | |
download | chromium_src-b873bc8b51dbee1193f3e6b48db0d08a86e3badc.zip chromium_src-b873bc8b51dbee1193f3e6b48db0d08a86e3badc.tar.gz chromium_src-b873bc8b51dbee1193f3e6b48db0d08a86e3badc.tar.bz2 |
[Android] Move CommandLine.java to base
The native CommandLine lives in base, and so too should the Java wrapper. Move
CommandLine.java to base, updating all references and factoring out previously
contained switches to BaseSwitches and ContentSwitches.
BUG=320747
TBR=ajwong@chromium.org
Review URL: https://codereview.chromium.org/62333025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/android')
2 files changed, 8 insertions, 5 deletions
diff --git a/content/shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/ContentLinkerTestActivity.java b/content/shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/ContentLinkerTestActivity.java index 3d3cb90..785ca19 100644 --- a/content/shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/ContentLinkerTestActivity.java +++ b/content/shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/ContentLinkerTestActivity.java @@ -12,12 +12,13 @@ import android.util.Log; import android.view.LayoutInflater; import android.view.View; +import org.chromium.base.BaseSwitches; +import org.chromium.base.CommandLine; import org.chromium.content.app.LibraryLoader; import org.chromium.content.app.Linker; import org.chromium.content.browser.BrowserStartupController; import org.chromium.content.browser.ContentView; import org.chromium.content.browser.ContentViewClient; -import org.chromium.content.common.CommandLine; import org.chromium.content.common.ProcessInitException; import org.chromium.content_shell.Shell; import org.chromium.content_shell.ShellManager; @@ -135,7 +136,7 @@ public class ContentLinkerTestActivity extends Activity { } private void waitForDebuggerIfNeeded() { - if (CommandLine.getInstance().hasSwitch(CommandLine.WAIT_FOR_JAVA_DEBUGGER)) { + if (CommandLine.getInstance().hasSwitch(BaseSwitches.WAIT_FOR_JAVA_DEBUGGER)) { Log.e(TAG, "Waiting for Java debugger to connect..."); android.os.Debug.waitForDebugger(); Log.e(TAG, "Java debugger connected. Resuming execution."); diff --git a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java index 14c8d1c..dc3e9b0 100644 --- a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java +++ b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java @@ -12,6 +12,8 @@ import android.util.Log; import android.view.KeyEvent; import android.widget.Toast; +import org.chromium.base.BaseSwitches; +import org.chromium.base.CommandLine; import org.chromium.base.MemoryPressureListener; import org.chromium.content.app.LibraryLoader; import org.chromium.content.browser.ActivityContentVideoViewClient; @@ -20,7 +22,7 @@ import org.chromium.content.browser.ContentVideoViewClient; import org.chromium.content.browser.ContentView; import org.chromium.content.browser.ContentViewClient; import org.chromium.content.browser.DeviceUtils; -import org.chromium.content.common.CommandLine; +import org.chromium.content.common.ContentSwitches; import org.chromium.content.common.ProcessInitException; import org.chromium.content_shell.Shell; import org.chromium.content_shell.ShellManager; @@ -75,7 +77,7 @@ public class ContentShellActivity extends Activity { mShellManager.setStartupUrl(Shell.sanitizeUrl(startupUrl)); } - if (CommandLine.getInstance().hasSwitch(CommandLine.DUMP_RENDER_TREE)) { + if (CommandLine.getInstance().hasSwitch(ContentSwitches.DUMP_RENDER_TREE)) { if(BrowserStartupController.get(this).startBrowserProcessesSync( BrowserStartupController.MAX_RENDERERS_LIMIT)) { finishInitialization(savedInstanceState); @@ -133,7 +135,7 @@ public class ContentShellActivity extends Activity { } private void waitForDebuggerIfNeeded() { - if (CommandLine.getInstance().hasSwitch(CommandLine.WAIT_FOR_JAVA_DEBUGGER)) { + if (CommandLine.getInstance().hasSwitch(BaseSwitches.WAIT_FOR_JAVA_DEBUGGER)) { Log.e(TAG, "Waiting for Java debugger to connect..."); android.os.Debug.waitForDebugger(); Log.e(TAG, "Java debugger connected. Resuming execution."); |