• Paul Miller's avatar
    Unify Android version and channel info · b66db7c4
    Paul Miller authored
    Android has 2 mechanisms for getting the channel: in Java, there's
    ChromeVersionConstants, which is generated at build-time using
    chrome/VERSION and the $android_channel GN variable. In native, there's
    channel_android.cc, which determines channel at run-time from the
    package name. Replace the native side with a JNI call to get the Java
    constant, to avoid requiring the package name.
    
    WebView needs channel and version info as well as Chrome, so move that
    info from ChromeVersionConstants into a new VersionConstants base class
    in version_info/. WebView currently adds channel info to UMA data, and
    plans to use channel and major version for downloading Finch seeds.
    
    Move Android-specific parts of version_info/ into version_info/android/.
    
    Remove remnants of the "work" channel, which were missed by commit
    0d9dc4f2.
    
    BUG=733857
    
    Change-Id: I61c952862e907ae666f910f4d386e712f6a52f2e
    Reviewed-on: https://chromium-review.googlesource.com/927212
    Commit-Queue: Paul Miller <paulmiller@chromium.org>
    Reviewed-by: default avatarRichard Coles <torne@chromium.org>
    Reviewed-by: default avatarNico Weber <thakis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#540003}
    b66db7c4
DEPS 179 Bytes