Files
brave-core/components
Terry Mancey faf0439eb1 [ads][CodeHealth] Use raw_ref for prefs_ and local_state_ members (#35611)
[ads][CodeHealth] Use raw_ref for prefs_ and local_state_ members

Replace raw_ptr with raw_ref for all prefs_ and local_state_ members
across VirtualPrefProvider, AdsServiceImpl, AdsServiceDelegate,
AdsServiceImplIOS, and BraveStatsHelper. These members are always
non-null at construction and are now typed to express that invariant.
Update the VirtualPrefProvider free functions IsSurveyPanelist and
GetSkus to take const PrefService& to eliminate conversion at call
sites. Simplify the CHECK_IS_TEST guard in AdsServiceImpl to check
only the nullable history_service_ pointer.

No behavioral changes.
2026-04-17 17:06:12 +01:00
..