| commit | aa699c84be3e0935113844ab5641c0677054d93c | [log] [tgz] |
|---|---|---|
| author | Juyoung Kim <chattank05@gmail.com> | Tue Feb 08 01:55:29 2022 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 08 01:55:29 2022 |
| tree | 4a1a32c2c054eccfce5863eeacd075364061ed2b | |
| parent | cacfbf0327f9760aa92212480b98da8e67c01486 [diff] |
Add WebUIDataSource::CreateAndAdd() Almost all WebUIDataSource::Create() users do no try to take ownership of the WebUIDataSource. The returned pointer always be passed to WebUIDataSource::Add() and it eventually passes the pointer down to URLDataManagerBackend. Inside WebUIDataSource::CreateAndAdd(), it calls WebUIDataSource::Add() to internalize its ownership. It provides right ownership semantics, and abstracts away the URLDataSourceImpl is refcounted details. Bug: 1206140 Change-Id: I89fd2e03b2a782b5c8ff00d1912d1adf78ef2218 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3406435 Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by: John Abd-El-Malek <jam@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#968119}
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.