HomePhabricator

Enum for banner hide reasons

Description

Enum for banner hide reasons

Calling code refers to hide reasons using string constants, and the
conversion to a numeric code happens transparently inside the state
object, before logging the minified banner history. Note that new
reasons must be added to the ext.centralNotice.display.state.js
REASONS map, otherwise they will show up in banner history logs as
"other".

Bug: T113813
Change-Id: Ia28c3503b17bf18dc7fb18ba0cf9bd61d2703f6b

Details