| commit | e63f4b0b18411d0ee68c42367f44109bb615b51b | [log] [tgz] |
|---|---|---|
| author | James Cook <jamescook@chromium.org> | Mon Jun 02 20:19:27 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 02 20:19:27 2025 |
| tree | ffbfa08577971bec3448de361d62d3b387a47324 | |
| parent | 58245d7ab6c53e4ad3e4fc658081cee581f943f9 [diff] |
extensions: Create extension pref value store on desktop Android startup Desktop Android supports extensions and therefore needs an instance of ExtensionPrefValueStore in its PrefService. However, desktop Android uses the "StartupData" code path during startup and profile initialization. StartupData does not have a Profile object instance, so it skips creating the extension pref value store when it creates the initial PrefService. See here: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/startup_data.cc;drc=efce54025758dc9d4f370c0269b332cb0d67474b;l=239 Once the Profile is created we can initialize the extension pref value store like we do on Win/Mac/Linux. However, we need to override the value store in the existing pref service, like we do for the command line value store. A followup CL porting an extension API to desktop Android relies on having a valid value store and will provide coverage of these code paths. Bug: 421235963 Change-Id: I4b0712f177841ec449a63264568de4fab1071522 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6604299 Reviewed-by: Yaron Friedman <yfriedman@chromium.org> Reviewed-by: Dominic Battré <battre@chromium.org> Commit-Queue: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/main@{#1468313}
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.