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 e1da29a3e4bd92b10d7961087935ecc9840afe0f..6603ad2da91013f98439ce4b38ec65758331e933 100644 |
--- a/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java |
+++ b/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java |
@@ -350,6 +350,7 @@ public class NetworkChangeNotifierAutoDetect extends BroadcastReceiver { |
// Lazily determine if app has ACCESS_WIFI_STATE permission. |
@GuardedBy("mLock") |
+ @SuppressLint("WifiManagerPotentialLeak") |
private boolean hasPermissionLocked() { |
if (mHasWifiPermissionComputed) { |
return mHasWifiPermission; |
@@ -357,6 +358,7 @@ public class NetworkChangeNotifierAutoDetect extends BroadcastReceiver { |
mHasWifiPermission = mContext.getPackageManager().checkPermission( |
permission.ACCESS_WIFI_STATE, mContext.getPackageName()) |
== PackageManager.PERMISSION_GRANTED; |
+ // TODO(crbug.com/635567): Fix lint properly. |
mWifiManager = mHasWifiPermission |
? (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE) |
: null; |