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

Unified Diff: net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java

Issue 2258953002: Prevent crashing when collecting some UMA about possible crashing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java
diff --git a/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java b/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java
index 8eb60878df3120ba8faea12f1f1c09f95963dc85..e164c739c8e1512646572bf668a3003c77ae7ee2 100644
--- a/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java
+++ b/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java
@@ -104,7 +104,7 @@ public class NetworkChangeNotifierAutoDetect extends BroadcastReceiver {
return networkInfo;
} catch (NullPointerException secondException) {
RecordHistogram.recordBooleanHistogram("NCN.getNetInfo2ndSuccess", false);
- throw secondException;
+ return null;
}
}
}
@@ -282,7 +282,7 @@ public class NetworkChangeNotifierAutoDetect extends BroadcastReceiver {
return wifiInfo;
} catch (NullPointerException secondException) {
RecordHistogram.recordBooleanHistogram("NCN.getWifiInfo2ndSuccess", false);
- throw secondException;
+ return null;
}
}
}
« 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