commit | a859dcddfb856c5776bf722e5204fb9d38dafd47 | [log] [tgz] |
---|---|---|
author | Mohannad Farrag <aymanm@google.com> | Thu Jan 09 17:13:41 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 09 17:13:41 2025 |
tree | 0dfbb7dcc96eb1cfef8c5f40f817e6b8d4819dd2 | |
parent | 6dd9a5e5927d59baac75e115186492b15abc73a1 [diff] |
Reduce the number of UpdateCurrentNetworkState calls during startup UpdateCurrentNetworkState is called 3 times during the initialization phase of Cronet, those are redundant calls as we don't expect the state of the network to change during startup within ~10ms and if it did change then there would be callbacks that should notify us to update our network state. Reducing initialization time should allow us to process the first request at an earlier time which allows the app to load content in a timely fashion. Removed base::featureFlag StoreConnectionSubtype as it has been enabled for more than half a year (more than a single major version) Tested: Enabled the flag and launched Cronet sample app, the perfetto trace showed a single instance of UpdateCurrentNetworkState Bug: 376646498 Change-Id: Ibeac34b83636ab6573e3c82bafa7d79286697961 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6111162 Reviewed-by: Stefano Duo <stefanoduo@google.com> Auto-Submit: Mohannad Farrag <aymanm@google.com> Commit-Queue: Mohannad Farrag <aymanm@google.com> Cr-Commit-Position: refs/heads/main@{#1404239}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.