Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a static variable to store the Chrome Product Version
The Chrome Product Version that is returned by version_info::GetProductNameAndVersionForUserAgent is a static string that can never change during the course of a running binary, since the PRODUCT_VERSION it is based off of is a macro generated at build time. Instead of recreating this string on every invocation, we store it in a static constant. This CL also cleans up some unnecessary namespace qualifications. Change-Id: Ida7758f1e58c77778d4b2c0c664c85005b16a41b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3169075 Reviewed-by: Colin Blundell <blundell@chromium.org> Commit-Queue: Ali Beyad <abeyad@chromium.org> Cr-Commit-Position: refs/heads/main@{#923404}
- Loading branch information