• Nate Fischer's avatar
    Android: expose CommandLine java methods · d983c6ef
    Nate Fischer authored
    No change to logic. This exposes CommandLine.hasSwitch() and
    CommandLine.appendSwitch(). These are used all over the code base, and
    I can't think of a good reason to mark them @VisibleForTesting.
    
    I know Android WebView definitely needs to use these APIs, since we have
    some Java-only processes which need to check and manipulate the
    commandline state, as well as some browser-process code which needs to
    check the CommandLine early in startup (before native initialization).
    
    Bug: 1107950
    Test: autoninja -C out/Default system_webview_apk
    Change-Id: Id0293c7e59c3c437cfd4870732de86e342b182d7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2310833
    Commit-Queue: Nate Fischer <ntfschr@chromium.org>
    Commit-Queue: Andrew Grieve <agrieve@chromium.org>
    Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
    Auto-Submit: Nate Fischer <ntfschr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#790574}
    d983c6ef
baseline.xml 365 KB