• Patti's avatar
    Settings: Fix crash navigating to All Sites for the protected content exception. · f9274eb1
    Patti authored
    Per-site exceptions for Protected Content / Protected Media Identifier only
    exists for CrOS / Android, but r503968 changed the Javascript internally so that
    it was defined on all platforms, and updated Site Details to only use it on
    CrOS.
    
    This introduced a crash when Chrome tries to get the exceptions for protected
    content on non-CrOS in All Sites, so fix by updating All Sites to check for CrOS
    before using it.
    
    Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
    Change-Id: I5c209cedfb6efbaee327a97d448ea9deab737b2d
    Bug: 769242
    Reviewed-on: https://chromium-review.googlesource.com/688914
    Commit-Queue: Patti <patricialor@chromium.org>
    Reviewed-by: default avatarDave Schuyler <dschuyler@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#505323}
    f9274eb1
settings_resources.grd 68.7 KB