Bug 1488111 - Remove the XPCOM component registration for nsCommandManager; r=qdot

Differential Revision: https://phabricator.services.mozilla.com/D4834
This commit is contained in:
Ehsan Akhgari
2018-09-02 20:43:16 -04:00
parent a196226bf3
commit 0054eabedd
4 changed files with 3 additions and 22 deletions

View File

@@ -145,7 +145,7 @@
#include "nsIWritablePropertyBag2.h"
#include "nsIWyciwygChannel.h"
#include "nsPICommandUpdater.h"
#include "nsCommandManager.h"
#include "nsPIDOMWindow.h"
#include "nsPILoadGroupInternal.h"
#include "nsPIWindowRoot.h"
@@ -13285,11 +13285,7 @@ nsresult
nsDocShell::EnsureCommandHandler()
{
if (!mCommandManager) {
nsCOMPtr<nsPICommandUpdater> commandUpdater =
do_CreateInstance("@mozilla.org/embedcomp/command-manager;1");
if (!commandUpdater) {
return NS_ERROR_OUT_OF_MEMORY;
}
nsCOMPtr<nsPICommandUpdater> commandUpdater = new nsCommandManager();
nsCOMPtr<nsPIDOMWindowOuter> domWindow = GetWindow();
nsresult rv = commandUpdater->Init(domWindow);