mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
Bug 1686616 - make UUIDGenerator use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105526
This commit is contained in:
parent
972f085576
commit
07ad6bc655
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user