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

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

Issue 1146363004: Turn on strict mode for all userdebug builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | 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/init/ChromeBrowserInitializer.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java b/chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java
index 99f7f9d31c7351035abd30dad1d63651863dd010..07cca2290869535b39c9931cd2a7d8dbed5a2f4e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java
@@ -254,7 +254,9 @@ public class ChromeBrowserInitializer {
private static void configureStrictMode() {
CommandLine commandLine = CommandLine.getInstance();
- if ("eng".equals(Build.TYPE) || commandLine.hasSwitch(ChromeSwitches.STRICT_MODE)) {
+ if ("eng".equals(Build.TYPE)
+ || "userdebug".equals(Build.TYPE)
jdduke (slow) 2015/06/01 21:34:58 Ned, Annie: Can we somehow bypass this for telemet
nednguyen 2015/06/01 21:37:53 I would push back adding further flags to telemetr
+ || commandLine.hasSwitch(ChromeSwitches.STRICT_MODE)) {
StrictMode.enableDefaults();
StrictMode.ThreadPolicy.Builder policy =
new StrictMode.ThreadPolicy.Builder(StrictMode.getThreadPolicy());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698