WebUI Polymer2 Migration: Fix pref indicator inheritance issue
Overriding Polymer properties defined in a behavior was never fully specified, and could lead to weird corner cases, which Polymer 2 explicitly decided to address. One new specification is that properties declared as computed in a behavior should not be overridden in elements implementing the behavior. As a result the indicatorTooltip property in CrPolicyIndicatorBehavior can no longer be overridden in Polymer2. Remove this property from the behavior and put it in the 3 elements implementing the behavior individually, while retaining the behavior's computation method since it is used by all 3. This causes CrElementsPolicyNetworkIndicatorTest.All (CrOS only) and CrElementsPolicyPrefIndicatorTest.All to pass with Polymer 2. Bug: 738611 Cq-Include-Trybots: luci.chromium.try:closure_compilation Change-Id: Iab7824c5d69c59b00fa0f1a173e3d5c85ec7d2e4 Reviewed-on: https://chromium-review.googlesource.com/1135631 Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#575155}
Showing
Please register or sign in to comment