diff --git a/t3sts/semgrep_rules/uaf.cpp b/t3sts/semgrep_rules/uaf.cpp index d322bbd9..47dfd2d2 100644 --- a/t3sts/semgrep_rules/uaf.cpp +++ b/t3sts/semgrep_rules/uaf.cpp @@ -45,4 +45,9 @@ v8::Local uaf(v8::Isolate* isolate) { base::BindRepeating(&BraveLeoAssistantHandler::HandleInitLeoAssistant, base::Unretained(this))); + // ok: chromium-unretained-uaf + pref_change_registrar_.Add( + prefs::kEnabled, + base::BindRepeating(&AdsServiceImpl::OnEnabledPrefChanged, + base::Unretained(this))); }