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

Issue 623403002: Generate ChromeVersionConstants.java at build time. (Closed)

Created:
6 years, 2 months ago by newt (away)
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Generate ChromeVersionConstants.java at build time. This allows us to query version information (e.g. the build version, whether it's an offical build) whether or not the native library is loaded. Future work: put channel information in this file too, and delete the ChromeVersionInfo.init() method. TBR=mmenke@chromium.org Committed: https://crrev.com/e0da09649369c4b65d0bedf5bc3609299a0ef5e3 Cr-Commit-Position: refs/heads/master@{#299195}

Patch Set 1 #

Total comments: 5

Patch Set 2 : generate templates into separate directories #

Patch Set 3 : fixed android_aosp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -45 lines) Patch
M android_webview/java_library_common.mk View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M build/android/java_cpp_template.gypi View 1 2 chunks +3 lines, -3 lines 0 comments Download
A chrome/android/java/ChromeVersionConstants.java.version View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/BrowserVersion.java View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeVersionInfo.java View 1 chunk +7 lines, -0 lines 0 comments Download
D chrome/browser/android/browser_version.h View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/browser/android/browser_version.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_android.gypi View 1 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 chunks +0 lines, -3 lines 0 comments Download
M components/cronet.gypi View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (9 generated)
newt (away)
PTAL https://codereview.chromium.org/623403002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/BrowserVersion.java File chrome/android/java/src/org/chromium/chrome/browser/BrowserVersion.java (right): https://codereview.chromium.org/623403002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/BrowserVersion.java#newcode11 chrome/android/java/src/org/chromium/chrome/browser/BrowserVersion.java:11: public class BrowserVersion { This class will be ...
6 years, 2 months ago (2014-10-04 00:12:00 UTC) #2
Yaron
lgtm https://codereview.chromium.org/623403002/diff/1/chrome/android/java/ChromeVersionConstants.java.version File chrome/android/java/ChromeVersionConstants.java.version (right): https://codereview.chromium.org/623403002/diff/1/chrome/android/java/ChromeVersionConstants.java.version#newcode8 chrome/android/java/ChromeVersionConstants.java.version:8: public static final String PRODUCT_NAME = "@PRODUCT_FULLNAME@"; Hmm. ...
6 years, 2 months ago (2014-10-06 15:45:39 UTC) #3
newt (away)
https://codereview.chromium.org/623403002/diff/1/chrome/android/java/ChromeVersionConstants.java.version File chrome/android/java/ChromeVersionConstants.java.version (right): https://codereview.chromium.org/623403002/diff/1/chrome/android/java/ChromeVersionConstants.java.version#newcode8 chrome/android/java/ChromeVersionConstants.java.version:8: public static final String PRODUCT_NAME = "@PRODUCT_FULLNAME@"; On 2014/10/06 ...
6 years, 2 months ago (2014-10-06 16:39:13 UTC) #4
cjhopman
lgtm
6 years, 2 months ago (2014-10-08 18:21:29 UTC) #5
newt (away)
+thestig: chrome.gyp (one line change)
6 years, 2 months ago (2014-10-08 18:29:10 UTC) #7
Lei Zhang
lgtm (and there's no GN changes to be done for Android, right?)
6 years, 2 months ago (2014-10-08 18:46:52 UTC) #8
newt (away)
On 2014/10/08 18:46:52, Lei Zhang wrote: > lgtm (and there's no GN changes to be ...
6 years, 2 months ago (2014-10-08 18:52:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/623403002/1
6 years, 2 months ago (2014-10-08 18:54:42 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device/builds/22383)
6 years, 2 months ago (2014-10-08 21:04:46 UTC) #13
newt (away)
https://codereview.chromium.org/623403002/diff/1/chrome/chrome_android.gypi File chrome/chrome_android.gypi (right): https://codereview.chromium.org/623403002/diff/1/chrome/chrome_android.gypi#newcode76 chrome/chrome_android.gypi:76: '<(SHARED_INTERMEDIATE_DIR)/templates', Chris, do you think putting the generated Java ...
6 years, 2 months ago (2014-10-09 21:53:05 UTC) #14
cjhopman
https://codereview.chromium.org/623403002/diff/1/chrome/chrome_android.gypi File chrome/chrome_android.gypi (right): https://codereview.chromium.org/623403002/diff/1/chrome/chrome_android.gypi#newcode76 chrome/chrome_android.gypi:76: '<(SHARED_INTERMEDIATE_DIR)/templates', On 2014/10/09 21:53:04, newt wrote: > Chris, do ...
6 years, 2 months ago (2014-10-09 22:07:29 UTC) #15
newt (away)
On 2014/10/09 22:07:29, cjhopman wrote: > https://codereview.chromium.org/623403002/diff/1/chrome/chrome_android.gypi > File chrome/chrome_android.gypi (right): > > https://codereview.chromium.org/623403002/diff/1/chrome/chrome_android.gypi#newcode76 > ...
6 years, 2 months ago (2014-10-09 22:45:04 UTC) #16
newt (away)
TBR mmenke: cronet.gypi
6 years, 2 months ago (2014-10-09 22:46:09 UTC) #18
newt (away)
PTAL Looks like the shared template directory problem doesn't exist in GN, so no need ...
6 years, 2 months ago (2014-10-09 22:51:09 UTC) #19
cjhopman
On 2014/10/09 22:51:09, newt wrote: > PTAL > > Looks like the shared template directory ...
6 years, 2 months ago (2014-10-09 22:54:04 UTC) #20
newt (away)
On 2014/10/09 22:54:04, cjhopman wrote: > On 2014/10/09 22:51:09, newt wrote: > > PTAL > ...
6 years, 2 months ago (2014-10-09 22:57:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/623403002/50001
6 years, 2 months ago (2014-10-09 22:58:17 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/23181)
6 years, 2 months ago (2014-10-09 23:28:37 UTC) #25
newt (away)
+boliu: for android_webview/java_library_common.mk
6 years, 2 months ago (2014-10-10 18:53:17 UTC) #27
boliu
On 2014/10/10 18:53:17, newt wrote: > +boliu: for android_webview/java_library_common.mk lgtm
6 years, 2 months ago (2014-10-10 19:01:40 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/623403002/370001
6 years, 2 months ago (2014-10-10 19:23:09 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:370001)
6 years, 2 months ago (2014-10-10 21:49:07 UTC) #31
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 21:49:44 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e0da09649369c4b65d0bedf5bc3609299a0ef5e3
Cr-Commit-Position: refs/heads/master@{#299195}

Powered by Google App Engine
This is Rietveld 408576698