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

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

Issue 654293002: Fix Java indentation issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 | net/android/java/src/org/chromium/net/DefaultAndroidKeyStore.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java
diff --git a/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java b/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java
index 472c0f771852ebdbddf1b789d480958dfe03bda2..6b913186e9a11ed8fe252712cc6bffe371d7c547 100644
--- a/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java
+++ b/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java
@@ -245,12 +245,10 @@ class AndroidNetworkLibrary {
*/
@CalledByNative
private static String getNetworkCountryIso(Context context) {
- TelephonyManager telephonyManager =
- (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
- if (telephonyManager != null) {
+ TelephonyManager telephonyManager =
+ (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
+ if (telephonyManager == null) return "";
return telephonyManager.getNetworkCountryIso();
- }
- return "";
}
/**
@@ -259,12 +257,10 @@ class AndroidNetworkLibrary {
*/
@CalledByNative
private static String getNetworkOperator(Context context) {
- TelephonyManager telephonyManager =
- (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
- if (telephonyManager != null) {
+ TelephonyManager telephonyManager =
+ (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
+ if (telephonyManager == null) return "";
return telephonyManager.getNetworkOperator();
- }
- return "";
}
}
« no previous file with comments | « no previous file | net/android/java/src/org/chromium/net/DefaultAndroidKeyStore.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698