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

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

Issue 2181053002: android: dcheck_always_on sets BuildConfig.IS_DCHECK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix findbugs Created 4 years, 5 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
« no previous file with comments | « base/android/java/src/org/chromium/base/ThreadUtils.java ('k') | build/config/android/config.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/templates/BuildConfig.template
diff --git a/base/android/java/templates/BuildConfig.template b/base/android/java/templates/BuildConfig.template
index 7ec2b324c2d64c63d9d261d89ada06ca3ebe54d8..e135e2400b213d417b720509755eae0c7b20ad56 100644
--- a/base/android/java/templates/BuildConfig.template
+++ b/base/android/java/templates/BuildConfig.template
@@ -22,11 +22,11 @@ public class BuildConfig {
#endif
}
- // Debug does not change between targets, can be final and optimized out.
-#if defined(NDEBUG)
- public static final boolean IS_DEBUG = false;
+ // 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;
#else
- public static final boolean IS_DEBUG = true;
+ public static final boolean DCHECK_IS_ON = false;
#endif
}
« no previous file with comments | « base/android/java/src/org/chromium/base/ThreadUtils.java ('k') | build/config/android/config.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698