• khmel@chromium.org's avatar
    arc: Handle optional settings link for preferences in OptIn. · 40fb9201
    khmel@chromium.org authored
    This handles the cases when settings and learn more links may not
    present in text. Text comes from translation resources and may be
    omitted internationally or unintentionally. We can not validate all
    resources and also text may now don't have such links. So let be safe.
    In production that may lead to the case when such link might not work
    correctly (don't react). In test this is a reason for autotest failure
    that uses ARC OptIn flow.
    
    TBR=xiyuan@chromium.org
    
    BUG=805304
    BUG=905958
    
    TEST: Manually, with extra logging confirms that no report is generated.
    Change-Id: Iba5786b5361a6a99c4808cffdb8b0d7a3d155fb9
    Reviewed-on: https://chromium-review.googlesource.com/c/1341074
    Commit-Queue: Yury Khmel <khmel@chromium.org>
    Reviewed-by: default avatarJosh Horwich <jhorwich@chromium.org>
    Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#609072}
    40fb9201
background.js 36.4 KB