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

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

Issue 301973002: Support Bluetooth network connection type on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth
Patch Set: Fix Created 6 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
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 6fa7f4f952453e0380e1c3961b62a5d1c7373afc..5a46a6c2d3489e4cfe00d02c5dcad22febaa21e9 100644
--- a/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java
+++ b/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java
@@ -163,6 +163,8 @@ public class NetworkChangeNotifierAutoDetect extends BroadcastReceiver
return NetworkChangeNotifier.CONNECTION_WIFI;
case ConnectivityManager.TYPE_WIMAX:
return NetworkChangeNotifier.CONNECTION_4G;
+ case ConnectivityManager.TYPE_BLUETOOTH:
+ return NetworkChangeNotifier.CONNECTION_BLUETOOTH;
case ConnectivityManager.TYPE_MOBILE:
// Use information from TelephonyManager to classify the connection.
switch (mConnectivityManagerDelegate.getNetworkSubtype()) {

Powered by Google App Engine
This is Rietveld 408576698