Repository: electron
Issue: Session.clearData restores Network Persistent State on shutdown
Labels: platform/macOS,bug :beetle:,status/confirmed,has-repro-gist,32-x-y,33-x-y

### Preflight Checklist

- [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [x] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

32.1.2

### What operating system(s) are you using?

macOS

### Operating System Version

macOS 14.7

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

_No response_

### Expected Behavior

Calling `session.clearData()` should clear data found in `~/Library/Application Support/AppName/Network Persistent State`

### Actual Behavior

`session.clearData()` clears data found in `~/Library/Application Support/AppName/Network Persistent State`

However, after application shutdown, the data is restored the persisted file.

### Testcase Gist URL

https://gist.github.com/samuelmaddock/64c050c97f751be9452c415ffcc052c8

### Additional Information

[BrowsingDataRemoverImpl](https://source.chromium.org/chromium/chromium/src/+/main:content/browser/browsing_data/browsing_data_remover_impl.h;drc=08efa89c7d73d72e6ebcddbf053c41a230dc1ba8;l=36)::[RemoveImpl](https://source.chromium.org/chromium/chromium/src/+/main:content/browser/browsing_data/browsing_data_remover_impl.cc;drc=7fa0c25da15ae39bbd2fd720832ec4df4fee705a;bpv=1;bpt=1;l=308?gsn=RemoveImpl&gs=KYTHE%3A%2F%2Fkythe%3A%2F%2Fchromium.googlesource.com%2Fcodesearch%2Fchromium%2Fsrc%2F%2Fmain%3Flang%3Dc%252B%252B%3Fpath%3Dcontent%2Fbrowser%2Fbrowsing_data%2Fbrowsing_data_remover_impl.cc%23gfPb3p5eZhMrFKLhmSKZkl_W5c7fpQzTxn8w6xdi1-I) ends up calling [NetworkContext](https://source.chromium.org/chromium/chromium/src/+/main:services/network/network_context.cc;drc=08efa89c7d73d72e6ebcddbf053c41a230dc1ba8;bpv=1;bpt=1;l=1266?gsn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bnRleHQlM0FuZXR3b3JrJTIzYyUyM21helFTeXJyMFNQ)::[ClearNetworkingHistoryBetween](https://source.chromium.org/chromium/chromium/src/+/main:services/network/network_context.cc;drc=08efa89c7d73d72e6ebcddbf053c41a230dc1ba8;bpv=1;bpt=1;l=1266?gsn=ClearNetworkingHistoryBetween&gs=KYTHE%3A%2F%2Fkythe%3A%2F%2Fchromium.googlesource.com%2Fcodesearch%2Fchromium%2Fsrc%2F%2Fmain%3Flang%3Dc%252B%252B%3Fpath%3Dservices%2Fnetwork%2Fnetwork_context.cc%23l8V7NAiG2pvvDclz5TLHWZo17GzTDfV3ZyQW-FwR84o) which for some reason isn't invoked until shutdown.