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

Unified Diff: chrome/android/java/ChromeVersionConstants.java.version

Issue 668343004: Make channel available in Java via ChromeVersionConstants.java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: brettw's comment Created 6 years, 2 months 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: chrome/android/java/ChromeVersionConstants.java.version
diff --git a/chrome/android/java/ChromeVersionConstants.java.version b/chrome/android/java/ChromeVersionConstants.java.version
index d5e86609acc85b51f3fdebe33e05fed620f56a66..83b9a118f60bd1c98897b8257d4cc6c08fb81308 100644
--- a/chrome/android/java/ChromeVersionConstants.java.version
+++ b/chrome/android/java/ChromeVersionConstants.java.version
@@ -4,8 +4,15 @@
package org.chromium.chrome.browser;
-public class ChromeVersionConstants {
- public static final String PRODUCT_NAME = "@PRODUCT_FULLNAME@";
- public static final String PRODUCT_VERSION = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@";
- public static final boolean IS_OFFICIAL_BUILD = @OFFICIAL_BUILD@ == 1;
+class ChromeVersionConstants {
+ static final String PRODUCT_NAME = "@PRODUCT_FULLNAME@";
+ static final String PRODUCT_VERSION = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@";
+ static final boolean IS_OFFICIAL_BUILD = @OFFICIAL_BUILD@ == 1;
+
+ static final int CHANNEL_DEFAULT = 0;
+ static final int CHANNEL_CANARY = 1;
+ static final int CHANNEL_DEV = 2;
+ static final int CHANNEL_BETA = 3;
+ static final int CHANNEL_STABLE = 4;
+ static final int CHANNEL = CHANNEL_@CHANNEL@;
}
« no previous file with comments | « chrome/android/channel.gni ('k') | chrome/android/java/src/org/chromium/chrome/browser/ChromeVersionInfo.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698