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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user