Bug 1378738 - Stop using sdk/window/utils in Netmonitor; r=rickychien

MozReview-Commit-ID: 4Z4pDHxhbZN

--HG--
extra : rebase_source : febe5d1737f7d80711aa890065308dd9422236d7
This commit is contained in:
Jan Odvarko 2017-07-06 14:27:10 +02:00
Родитель 2b08986be1
Коммит 5bfbba28c6
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -6,8 +6,10 @@
"use strict"; "use strict";
const Services = require("Services");
const { Ci, Cc, CC } = require("chrome"); const { Ci, Cc, CC } = require("chrome");
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm"); const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
const { gDevTools } = require("devtools/client/framework/devtools");
XPCOMUtils.defineLazyGetter(this, "dirService", function () { XPCOMUtils.defineLazyGetter(this, "dirService", function () {
return Cc["@mozilla.org/file/directory_service;1"] return Cc["@mozilla.org/file/directory_service;1"]
@ -23,7 +25,7 @@ XPCOMUtils.defineLazyGetter(this, "LocalFile", function () {
}); });
XPCOMUtils.defineLazyGetter(this, "getMostRecentBrowserWindow", function () { XPCOMUtils.defineLazyGetter(this, "getMostRecentBrowserWindow", function () {
return require("sdk/window/utils").getMostRecentBrowserWindow; return Services.wm.getMostRecentWindow(gDevTools.chromeWindowType);
}); });
const OPEN_FLAGS = { const OPEN_FLAGS = {