Bug 1215012 - mdnsd - Firefox Beta Android excessive battery usage. r=xeonchen, a=sylvestre
authorMark Finkle <mfinkle@mozilla.com>
Mon, 23 Nov 2015 19:27:20 -0500
changeset 328111 3ddbb13a55736eb2900fa5d9af2b2354a793fc2b
parent 328110 8ecdea9cf2348879ea6dd850407d2c73864c990b
child 328112 6b62d8e1caa2c13a0f383ec1a2978ada9a0ef518
push id10322
push userdteller@mozilla.com
push dateTue, 02 Feb 2016 12:05:39 +0000
reviewersxeonchen, sylvestre
bugs1215012
milestone42.0.1
Bug 1215012 - mdnsd - Firefox Beta Android excessive battery usage. r=xeonchen, a=sylvestre
mobile/android/base/mdns/MulticastDNSManager.java
--- a/mobile/android/base/mdns/MulticastDNSManager.java
+++ b/mobile/android/base/mdns/MulticastDNSManager.java
@@ -32,22 +32,17 @@ import java.util.Map;
  * @See nsIDNSServiceDiscovery.idl
  */
 public abstract class MulticastDNSManager {
     protected static final String LOGTAG = "GeckoMDNSManager";
     private static MulticastDNSManager instance = null;
 
     public static MulticastDNSManager getInstance(final Context context) {
         if (instance == null) {
-            // Bug 1188935: There's a bug on Android 4.4 and before.
-            if (Versions.feature21Plus) {
-                instance = new NsdMulticastDNSManager(context);
-            } else {
-                instance = new DummyMulticastDNSManager();
-            }
+            instance = new DummyMulticastDNSManager();
         }
         return instance;
     }
 
     public abstract void init();
     public abstract void tearDown();
 }