Bug 1595483 - Remove visited-status-resolution notification. r=mak

No consumers left.

Differential Revision: https://phabricator.services.mozilla.com/D97776
This commit is contained in:
Emilio Cobos Álvarez 2020-11-20 16:36:06 +00:00
Родитель 210bda662e
Коммит b387d88540
1 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@ -55,9 +55,6 @@ namespace places {
////////////////////////////////////////////////////////////////////////////////
//// Global Defines
#define URI_VISITED "visited"
#define URI_NOT_VISITED "not visited"
#define URI_VISITED_RESOLUTION_TOPIC "visited-status-resolution"
// Observer event fired after a visit has been registered in the DB.
#define URI_VISIT_SAVED "uri-visit-saved"
@ -428,16 +425,6 @@ class VisitedQuery final : public AsyncStatementCallback {
: IHistory::VisitedStatus::Unvisited;
history->NotifyVisited(mURI, status);
}
nsCOMPtr<nsIObserverService> observerService =
mozilla::services::GetObserverService();
if (observerService) {
static const char16_t visited[] = u"" URI_VISITED;
static const char16_t notVisited[] = u"" URI_NOT_VISITED;
const char16_t* status = mIsVisited ? visited : notVisited;
(void)observerService->NotifyObservers(mURI, URI_VISITED_RESOLUTION_TOPIC,
status);
}
}
private: