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

Unified Diff: base/android/java/templates/BuildConfig.template

Issue 2845773004: DO NOT SUBMIT: add main dex list check to classloader. (Closed)
Patch Set: Created 3 years, 8 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: 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
}
« no previous file with comments | « base/android/java/src/org/chromium/base/multidex/ChromiumClassLoader.java ('k') | build/android/gyp/main_dex_list.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698