Bug 1478124: Part 8a - Update toolkit module to use a static component manifest. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D15039
This commit is contained in:
Kris Maglione
2018-12-16 16:03:00 -08:00
parent 05b32c9eb3
commit 4b169665d2
33 changed files with 305 additions and 479 deletions

View File

@@ -15,6 +15,7 @@
#include "nsNetCID.h"
#include "nsPrintfCString.h"
#include "nsThreadUtils.h"
#include "mozilla/Components.h"
#include "mozilla/EndianUtils.h"
#include "mozilla/Telemetry.h"
#include "mozilla/IntegerPrintfMacros.h"
@@ -721,7 +722,7 @@ nsresult Classifier::ApplyUpdatesBackground(TableUpdateArray& aUpdates,
}
nsCOMPtr<nsIUrlClassifierUtils> urlUtil =
do_GetService(NS_URLCLASSIFIERUTILS_CONTRACTID);
components::UrlClassifierUtils::Service();
nsCString provider;
// Assume all TableUpdate objects should have the same provider.
@@ -1159,7 +1160,7 @@ bool Classifier::CheckValidUpdate(TableUpdateArray& aUpdates,
nsCString Classifier::GetProvider(const nsACString& aTableName) {
nsCOMPtr<nsIUrlClassifierUtils> urlUtil =
do_GetService(NS_URLCLASSIFIERUTILS_CONTRACTID);
components::UrlClassifierUtils::Service();
nsCString provider;
nsresult rv = urlUtil->GetProvider(aTableName, provider);