forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoiding diamond inheritance in url/origin/trustworthiness tests.
This CL removes pure-virtual interfaces that used to document requirements of traits that back the AbstractUrlTest, AbstractOriginTest and AbstractTrustworthinessTest (and enforce these requirements at compile time). The documentation is moved to a comment, and at compile-time we now rely on duck-typing (i.e. what C++ templates do). The main motivation for this change is the removal of diamond/virtual inheritance that was necessary before. Additionally, the shorter resulting code can be argued to be simpler and easier to read. Bug: 1164416 Change-Id: I6fee0bdf9bf24d553535be6b8e0ba70400e05f2b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2644150 Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#846817}
- Loading branch information
1 parent
611ee9d
commit 123987f
Showing
8 changed files
with
115 additions
and
162 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
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
Oops, something went wrong.