[DanglingPtr] Enable dangling detection on Windows (#26904)

The only platform still being excluded from dangling pointer detection
is Windows. This change removes the existing exclusion rule, which means
that brave builds in all platforms using the same rules as upstream, and
this includes Windows too.

Resolves https://github.com/brave/brave-browser/issues/41957
This commit is contained in:
cdesouza-chromium
2024-12-06 20:39:10 +00:00
committed by GitHub
parent 8f6e6ec5f7
commit 8d785b4e43
-10
View File
@@ -431,16 +431,6 @@ Config.prototype.buildArgs = function () {
generate_about_credits: true,
}
const danglingPtrEnabledPlatforms = ['android', 'linux', 'mac', 'ios']
if (!danglingPtrEnabledPlatforms.includes(this.getTargetOS())) {
// We explicitly disabled the check for certain other OSes, while leaving
// it as whatever is the default on the ones we've managed to get the
// detector properly running.
args.enable_dangling_raw_ptr_feature_flag = false
}
if (!this.isBraveReleaseBuild()) {
args.chrome_pgo_phase = 0