commit | f1415b5b0707ecd644d66b46ba3f28a9fe81ae2f | [log] [tgz] |
---|---|---|
author | Alex Clarke <alexclarke@chromium.org> | Tue Jan 08 15:02:31 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 08 15:02:31 2019 |
tree | 379a5626c9e0519f31afcb8a81c850c85392380c | |
parent | e76eec0720c359c9aa169ff571858f6889ee5919 [diff] |
Allow ValidTraits to be 'inherited' Real inheritance doesn't work with trait_helpers::AreValidTraits I.e. this doesn't work: struct ValidTraits { ValidTraits(TraitA); }; struct ValidTraits2 : public ValidTraits { ValidTraits2(TraitB); }; But we can make this work: struct ValidTraits { ValidTraits(TraitA); }; struct ValidTraits2 { ValidTraits2(ValidTraits); ValidTraits2(TraitB); }; Unfortunately that doesn't work 3 levels deep, but it does fix the requirements for the BrowserUIThreadScheduler. Bug: 863341 Change-Id: I059c6db46be3363efcc57f1bee721e697231c888 Reviewed-on: https://chromium-review.googlesource.com/c/1400582 Commit-Queue: Alex Clarke <alexclarke@chromium.org> Reviewed-by: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#620720}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .