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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeStrictMode.java

Issue 2031033002: Adding option for Proguard jar to be switched. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed single newline Created 4 years, 6 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 | « chrome/android/chrome_public_apk_tmpl.gni ('k') | components/cronet/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeStrictMode.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeStrictMode.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeStrictMode.java
index 94fcafc5fcf141f2f656fac309d2cb3922c20eb5..1fae958f387f4f51941f71a095e1ec2d41b6147d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeStrictMode.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeStrictMode.java
@@ -15,6 +15,7 @@ import org.chromium.base.BuildConfig;
import org.chromium.base.CommandLine;
import org.chromium.base.Log;
import org.chromium.base.ThreadUtils;
+import org.chromium.base.annotations.SuppressFBWarnings;
import org.chromium.base.library_loader.LibraryLoader;
import java.lang.reflect.Field;
@@ -158,6 +159,8 @@ public class ChromeStrictMode {
* Turn on StrictMode detection based on build and command-line switches.
*/
@UiThread
+ // FindBugs doesn't like conditionals with compile time results
+ @SuppressFBWarnings("UCF_USELESS_CONTROL_FLOW_NEXT_LINE")
public static void configureStrictMode() {
assert ThreadUtils.runningOnUiThread();
if (sIsStrictModeAlreadyConfigured) {
@@ -172,7 +175,7 @@ public class ChromeStrictMode {
CommandLine commandLine = CommandLine.getInstance();
if ("eng".equals(Build.TYPE)
- || BuildConfig.sIsDebug
+ || BuildConfig.IS_DEBUG
|| ChromeVersionInfo.isLocalBuild()
|| commandLine.hasSwitch(ChromeSwitches.STRICT_MODE)) {
turnOnDetection(threadPolicy, vmPolicy);
@@ -192,7 +195,7 @@ public class ChromeStrictMode {
// closely monitor this on dev channel.
boolean enableStrictModeWatch =
(ChromeVersionInfo.isDevBuild() && Math.random() < UPLOAD_PROBABILITY);
- if ((ChromeVersionInfo.isLocalBuild() && !BuildConfig.sIsDebug) || enableStrictModeWatch) {
+ if ((ChromeVersionInfo.isLocalBuild() && !BuildConfig.IS_DEBUG) || enableStrictModeWatch) {
turnOnDetection(threadPolicy, vmPolicy);
initializeStrictModeWatch();
}
« no previous file with comments | « chrome/android/chrome_public_apk_tmpl.gni ('k') | components/cronet/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698