Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of WebUIDataSource::Create() and WebUIDataSource::Add()
- Create() has been replaced by CreateAndAdd(). - Replace the last Create() caller in WebUIDataSourceTest with a direct WebUIDataSourceImpl allocation. - Fold the 1 line Add() implementation into CreateAndAdd(). - Implement TestWebUIDataSource::AddDataSourceForBrowserContext(). - Update the last Add() caller, which is in a unit test, to use TestWebUIDataSource::AddDataSourceForBrowserContext(). Bug: 1206140 Change-Id: Ief1102c8771f736f4f5fcbb597084434e9ed6220 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4349773 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/main@{#1119020}
- Loading branch information
Showing
6 changed files
with
18 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters