Bug 1264815 - Add a 'data' parameter to GeckoThread.createServices; r=jchen
☠☠ backed out by 11bba688023e ☠ ☠
authorSUN Haitao <sunhaitao@devtaste.com>
Sat, 16 Apr 2016 14:19:37 +0800
changeset 340542 ca182106b9e60f3b7ac7ab74a507c95cee535fe6
parent 340541 42fab251fe111d5f891c9bde0ee1fb6f7f946a50
child 340543 8f6cc2d22ba7c308e789c84404a4086084cd49f3
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1264815
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);
     }