Bug 1264815 - Add a 'data' parameter to GeckoThread.createServices; r=jchen
authorSUN Haitao <sunhaitao@devtaste.com>
Sat, 16 Apr 2016 14:19:37 +0800
changeset 327240 62e7c9ec49bce83b46724bc6063e50a3c848bab3
parent 327239 21a0421ca9b0e39a28b1ab1875b6ac33f06f23da
child 327241 92af6b44d00045f7a9c89926bd4eeae6552baff4
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1264815
milestone50.0a1
Bug 1264815 - Add a 'data' parameter to GeckoThread.createServices; r=jchen
mobile/android/base/java/org/mozilla/gecko/GeckoService.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoService.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoService.java
@@ -124,19 +124,17 @@ public class GeckoService extends Servic
     public static Intent getIntentToCreateServices(final Context context, final String category, final String data) {
         final Intent intent = getIntentForAction(context, INTENT_ACTION_CREATE_SERVICES);
         intent.putExtra(INTENT_SERVICE_CATEGORY, category);
         intent.putExtra(INTENT_SERVICE_DATA, data);
         return intent;
     }
 
     public static Intent getIntentToCreateServices(final Context context, final String category) {
-        final Intent intent = getIntentForAction(context, INTENT_ACTION_CREATE_SERVICES);
-        intent.putExtra(INTENT_SERVICE_CATEGORY, category);
-        return intent;
+        return getIntentToCreateServices(context, category, /* data */ null);
     }
 
     public static void setIntentProfile(final Intent intent, final String profileName,
                                         final String profileDir) {
         intent.putExtra(INTENT_PROFILE_NAME, profileName);
         intent.putExtra(INTENT_PROFILE_DIR, profileDir);
     }