зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1686616 - make UUIDGenerator use Components instead of Services. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D105526
This commit is contained in:
Родитель
972f085576
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче