Skip to content

Add a cleanup target: Brave crashpad/reports #14

Description

@yagcioglutoprak

Brave is Chromium-based and already has a brave-cache target, but it also accumulates a distinct Crashpad report folder and a Country Logs folder under Application Support that grow over time and are safe to clear:

~/Library/Application Support/BraveSoftware/Brave-Browser/Crashpad

This is a small extension to the existing brave-cache target (or a sibling target), scoped to the crashpad/reports subfolders only. The parent BraveSoftware/Brave-Browser holds real profile data and must never be deletable as a whole.

File: CleanerEngine/Sources/CleanerEngine/CleanupTargetRegistry.swift (see the brave-cache entry)
Level: Safe

  • Add the Crashpad subfolder to the existing path templates, or add a brave-crashpad target that reuses the App Cache category.
  • Mirror the blocking assertions already in AppCacheTargetTests.swift so the parent profile folder stays protected.

Acceptance: swift test passes, the new path validates against SafetyValidator, and the Brave profile root still does not.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions