Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 451578 - Replace |.getService() .QueryInterface(iid)| by |.getSer…
Browse files Browse the repository at this point in the history
…vice(iid)| in mozilla-central. r=Yoric
  • Loading branch information
reznord authored and erikvold committed Jul 7, 2014
1 parent 578231d commit 47eac11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/sdk/system/globals.js
Expand Up @@ -12,8 +12,7 @@ let { Cc, Ci, CC } = require('chrome');
let { PlainTextConsole } = require('../console/plain-text');
let { stdout } = require('../system');
let ScriptError = CC('@mozilla.org/scripterror;1', 'nsIScriptError');
let consoleService = Cc['@mozilla.org/consoleservice;1'].getService().
QueryInterface(Ci.nsIConsoleService);
let consoleService = Cc['@mozilla.org/consoleservice;1'].getService(Ci.nsIConsoleService);

// On windows dump does not writes into stdout so cfx can't read thous dumps.
// To workaround this issue we write to a special file from which cfx will
Expand Down
3 changes: 1 addition & 2 deletions lib/sdk/test/harness.js
Expand Up @@ -30,8 +30,7 @@ function emptyPromise() {
return promise;
}

var cService = Cc['@mozilla.org/consoleservice;1'].getService()
.QueryInterface(Ci.nsIConsoleService);
var cService = Cc['@mozilla.org/consoleservice;1'].getService(Ci.nsIConsoleService);

// The console used to log messages
var testConsole;
Expand Down

0 comments on commit 47eac11

Please sign in to comment.