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

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

Issue 1597273005: Move ChromiumMultiDex to BuildConfig. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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/ChromiumMultiDex.template b/base/android/java/templates/BuildConfig.template
similarity index 65%
rename from base/android/java/templates/ChromiumMultiDex.template
rename to base/android/java/templates/BuildConfig.template
index 7e70701c76a944e37d742b16b8cd002adac18366..d43a201a8a5df33083672fbeee21558ceae8dcf3 100644
--- a/base/android/java/templates/ChromiumMultiDex.template
+++ b/base/android/java/templates/BuildConfig.template
@@ -2,19 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.base.multidex;
+package org.chromium.base;
/**
- * Multidex configuration. Generated on a per-target basis.
+ * Build configuration. Generated on a per-target basis.
*/
-class ChromiumMultiDex {
+public class BuildConfig {
/** Whether multidex is enabled for this target.
*
* This has to be a function instead of a static final boolean s.t. the initial false value
* doesn't get optimized into {@link ChromiumMultiDexInstaller} at base_java compile time.
*/
- static boolean isMultidexEnabled() {
+ public static boolean isMultidexEnabled() {
#if defined(ENABLE_MULTIDEX)
return true;
#else
@@ -22,4 +22,10 @@ class ChromiumMultiDex {
#endif
}
+#if defined(NDEBUG)
+ public static boolean sIsDebug = true;
+#else
+ public static boolean sIsDebug = false;
+#endif
+
}

Powered by Google App Engine
This is Rietveld 408576698