Skip to content

Commit

Permalink
Bug 1294637 - add Cr declaration. r=me.
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: 98uhnS0Dod4
  • Loading branch information
schien committed Aug 12, 2016
1 parent 40eaa7b commit 1e1a0fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion b2g/components/B2GPresentationDevicePrompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function debug(aMsg) {
//dump("-*- B2GPresentationDevicePrompt: " + aMsg + "\n");
}

const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;

const kB2GPRESENTATIONDEVICEPROMPT_CONTRACTID = "@mozilla.org/presentation-device/prompt;1";
const kB2GPRESENTATIONDEVICEPROMPT_CID = Components.ID("{4a300c26-e99b-4018-ab9b-c48cf9bc4de1}");
Expand Down
6 changes: 3 additions & 3 deletions mobile/android/components/PresentationDevicePrompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

"use strict";

const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;

Cu.import('resource://gre/modules/XPCOMUtils.jsm');
Cu.import('resource://gre/modules/Services.jsm');
Expand Down Expand Up @@ -98,10 +98,10 @@ PresentationDevicePrompt.prototype = {
}

if (aIndex < 0) { // Cancel request if no selected device,
this._request.cancel(Cr.NS_ERROR_NOT_ALLOWED_ERR);
this._request.cancel(Cr.NS_ERROR_DOM_NOT_ALLOWED_ERR);
return;
} else if (!this._devices.length) { // or there is no available devices
this._request.cancel(Cr.NS_ERROR_NOT_FOUND_ERR);
this._request.cancel(Cr.NS_ERROR_DOM_NOT_FOUND_ERR);
return;
}

Expand Down

0 comments on commit 1e1a0fd

Please sign in to comment.