Bug 1686616 - make UUIDGenerator use Components instead of Services. r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D105526
This commit is contained in:
Alexis Beingessner 2021-02-18 13:26:30 +00:00
Родитель 972f085576
Коммит 07ad6bc655
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -15,6 +15,7 @@
#include "nsIConsoleService.h"
#include "nsIContentSecurityPolicy.h"
#include "nsIContent.h"
#include "mozilla/Components.h"
#include "mozilla/dom/Document.h"
#include "nsIEffectiveTLDService.h"
#include "nsIScriptError.h"
@ -400,7 +401,7 @@ AddonContentPolicy::ValidateAddonCSP(const nsAString& aPolicyString,
// origin in order to operate correctly.
nsAutoString url(u"moz-extension://");
{
nsCOMPtr<nsIUUIDGenerator> uuidgen = services::GetUUIDGenerator();
nsCOMPtr<nsIUUIDGenerator> uuidgen = components::UUIDGenerator::Service();
NS_ENSURE_TRUE(uuidgen, NS_ERROR_FAILURE);
nsID id;