| Index: base/android/java/templates/BuildConfig.template
|
| diff --git a/base/android/java/templates/BuildConfig.template b/base/android/java/templates/BuildConfig.template
|
| index 16f02f6a6cf7daf43ec8db98f43303a435d1f3bf..a33d666e375f2b9ea27e334f4e666adfeef19676 100644
|
| --- a/base/android/java/templates/BuildConfig.template
|
| +++ b/base/android/java/templates/BuildConfig.template
|
| @@ -22,6 +22,20 @@ public class BuildConfig {
|
| #endif
|
| }
|
|
|
| + /**
|
| + * Whether or not this target was built as part of an official build.
|
| + *
|
| + * This has to be a function instead of a static final boolean s.t. the initial false value
|
| + * doesn't get optimized into {@link ChromeApplication} at base_java compile time.
|
| + */
|
| + public static boolean isOfficialBuild() {
|
| +#if defined(IS_OFFICIAL_BUILD)
|
| + return true;
|
| +#else
|
| + return false;
|
| +#endif
|
| + }
|
| +
|
| // DCHECK_IS_ON does not change between targets, can be final and optimized out.
|
| #if defined(_DCHECK_IS_ON)
|
| public static final boolean DCHECK_IS_ON = true;
|
| @@ -46,4 +60,12 @@ public class BuildConfig {
|
| #else
|
| {};
|
| #endif
|
| +
|
| + // TODO(estevenson): comment.
|
| + public static final String[] MAIN_DEX_CLASSES =
|
| +#if defined(MAIN_DEX_CLASSES_LIST)
|
| + MAIN_DEX_CLASSES_LIST;
|
| +#else
|
| + {};
|
| +#endif
|
| }
|
|
|