Bug 1090650 - s/MIRROR_RECIEVER_APP_ID/MIRROR_RECEIVER_APP_ID to fix bustage. a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 29 Oct 2014 18:19:17 -0400
changeset 225863 b0a9f5a02950
parent 225862 ddfa86051d29
child 225864 50642467b0f7
push id4044
push userryanvm@gmail.com
push date2014-10-29 22:21 +0000
treeherdermozilla-beta@b0a9f5a02950 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1090650
milestone34.0
Bug 1090650 - s/MIRROR_RECIEVER_APP_ID/MIRROR_RECEIVER_APP_ID to fix bustage. a=bustage
mobile/android/base/ChromeCast.java
mobile/android/base/MediaPlayerManager.java
--- a/mobile/android/base/ChromeCast.java
+++ b/mobile/android/base/ChromeCast.java
@@ -142,17 +142,17 @@ class ChromeCast implements GeckoMediaPl
     public ChromeCast(Context context, RouteInfo route) {
         int status =  GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);
         if (status != ConnectionResult.SUCCESS) {
             throw new IllegalStateException("Play services are required for Chromecast support (go status code " + status + ")");
         }
 
         this.context = context;
         this.route = route;
-        this.canMirror = route.supportsControlCategory(CastMediaControlIntent.categoryForCast(MIRROR_RECIEVER_APP_ID));
+        this.canMirror = route.supportsControlCategory(CastMediaControlIntent.categoryForCast(MIRROR_RECEIVER_APP_ID));
     }
 
     // This dumps everything we can find about the device into JSON. This will hopefully make it
     // easier to filter out duplicate devices from different sources in js.
     public JSONObject toJSON() {
         final JSONObject obj = new JSONObject();
         try {
             final CastDevice device = CastDevice.getFromBundle(route.getExtras());
@@ -431,17 +431,17 @@ class ChromeCast implements GeckoMediaPl
                     public void onConnected(Bundle connectionHint) {
                         // Sometimes apiClient is null here. See bug 1061032
                         if (apiClient == null || !apiClient.isConnected()) {
                             return;
                         }
 
                         // Launch the media player app and launch this url once its loaded
                         try {
-                            Cast.CastApi.launchApplication(apiClient, MIRROR_RECIEVER_APP_ID, true)
+                            Cast.CastApi.launchApplication(apiClient, MIRROR_RECEIVER_APP_ID, true)
                                 .setResultCallback(new MirrorCallback(callback));
                         } catch (Exception e) {
                             debug("Failed to launch application", e);
                         }
                     }
 
                     @Override
                     public void onConnectionSuspended(int cause) {
--- a/mobile/android/base/MediaPlayerManager.java
+++ b/mobile/android/base/MediaPlayerManager.java
@@ -248,17 +248,17 @@ class MediaPlayerManager implements Nati
         mediaRouter.removeCallback(callback);
     }
 
     @Override
     public void onResume() {
         MediaRouteSelector selectorBuilder = new MediaRouteSelector.Builder()
             .addControlCategory(MediaControlIntent.CATEGORY_LIVE_VIDEO)
             .addControlCategory(MediaControlIntent.CATEGORY_REMOTE_PLAYBACK)
-            .addControlCategory(CastMediaControlIntent.categoryForCast(ChromeCast.MIRROR_RECIEVER_APP_ID))
+            .addControlCategory(CastMediaControlIntent.categoryForCast(ChromeCast.MIRROR_RECEIVER_APP_ID))
             .build();
         mediaRouter.addCallback(selectorBuilder, callback, MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY);
     }
 
     @Override
     public void onOrientationChanged() { }
 
 }