Bug 1233888 - Convert to Promise.jsm in app validator. r=ochameau draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 18 Dec 2015 18:19:20 -0600
changeset 316458 93ca4456a62501ee1a450977a91ec3e5f5d6f23d
parent 316457 2909982d2f44d06f7f7132ca6f06cd2fd3ea7c30
child 316459 2bce811a2aeab002669d028beebc85e0aaa6bef5
push id8560
push userjryans@gmail.com
push dateSat, 19 Dec 2015 00:21:55 +0000
reviewersochameau
bugs1233888
milestone46.0a1
Bug 1233888 - Convert to Promise.jsm in app validator. r=ochameau
devtools/client/webide/modules/app-validator.js
--- a/devtools/client/webide/modules/app-validator.js
+++ b/devtools/client/webide/modules/app-validator.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 "use strict";
 
 var {Ci,Cu,CC} = require("chrome");
-const promise = require("devtools/shared/deprecated-sync-thenables");
+const promise = require("promise");
 
 const {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm", {});
 const Services = require("Services");
 const {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
 var XMLHttpRequest = CC("@mozilla.org/xmlextras/xmlhttprequest;1");
 var strings = Services.strings.createBundle("chrome://devtools/locale/app-manager.properties");
 
 function AppValidator({ type, location }) {