From 07ad6bc655ae3e0b9b53fe6143bf45694292dda8 Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Thu, 18 Feb 2021 13:26:30 +0000 Subject: [PATCH] Bug 1686616 - make UUIDGenerator use Components instead of Services. r=kmag Differential Revision: https://phabricator.services.mozilla.com/D105526 --- toolkit/mozapps/extensions/AddonContentPolicy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolkit/mozapps/extensions/AddonContentPolicy.cpp b/toolkit/mozapps/extensions/AddonContentPolicy.cpp index 98b87ad128f9..798c228623cf 100644 --- a/toolkit/mozapps/extensions/AddonContentPolicy.cpp +++ b/toolkit/mozapps/extensions/AddonContentPolicy.cpp @@ -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 uuidgen = services::GetUUIDGenerator(); + nsCOMPtr uuidgen = components::UUIDGenerator::Service(); NS_ENSURE_TRUE(uuidgen, NS_ERROR_FAILURE); nsID id;