| Index: components/ntp_snippets/remote/ntp_snippets_service.h
|
| diff --git a/components/ntp_snippets/remote/ntp_snippets_service.h b/components/ntp_snippets/remote/ntp_snippets_service.h
|
| index ad3ad2bdeb94f541985ab19249ef8b90005d2e68..6ac485d9997ae960feb5601aad8732a04bc7c481 100644
|
| --- a/components/ntp_snippets/remote/ntp_snippets_service.h
|
| +++ b/components/ntp_snippets/remote/ntp_snippets_service.h
|
| @@ -235,8 +235,9 @@ class NTPSnippetsService final : public ContentSuggestionsProvider,
|
| // Removes expired dismissed snippets from the service and the database.
|
| void ClearExpiredDismissedSnippets();
|
|
|
| - // Removes images from the DB that do not have any corresponding snippet
|
| - // (neither in the current set, nor in the archived set).
|
| + // Removes images from the DB that are not referenced from any known snippet.
|
| + // Needs to iterate the whole snippet database -- so do it often enough to
|
| + // keep it small but not too often as it still iterates over the file system.
|
| void ClearOrphanedImages();
|
|
|
| // Clears all stored snippets and updates the observer.
|
|
|