| commit | ace649bbc0f17f7158ad77fbfd68bfd19eee032c | [log] [tgz] |
|---|---|---|
| author | Ryan Sultanem <rsult@google.com> | Fri Oct 11 12:08:05 2024 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 11 12:08:05 2024 |
| tree | 8e99c2e83147081fd62b92b5204c83181d9f5ac5 | |
| parent | 1e1513195ebd570e0b42ef8dc4dcb9f90d022539 [diff] |
[BatchUpload] Change the data/model key mapping In preparation to using SyncService DataTypeLocalDataBatchUploader interface, we simplify the mapping between the data and their models. Now using the real data key, instead of expecting the interface to keep record of the mapping of the displayed items. This forces the BatchUploadDialogHandler itself to keep track of its own id mapping per data type, given that Mojo can only support one id type, in order to retrieve back the right data id. This way the Id mapping complexity is decoupled from the data types. Currently the allowed Ids are only strings since it is the expected id type to be used first. But in theory, if any other id type is needed, the `BatchUploadDataItemModel::DataId` should support multiple types through `std::variant`, and it would be up to the data type to ensure the right data id type. Bug: b:372701325 Change-Id: I11b1f204c021f3d6c6c23a329b1fd424cd3cca78 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5922707 Reviewed-by: David Roger <droger@chromium.org> Commit-Queue: Ryan Sultanem <rsult@google.com> Cr-Commit-Position: refs/heads/main@{#1367448}
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.