зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
210bda662e
Коммит
b387d88540
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче