• mark a. foltz's avatar
    [Media Router] Ensure MediaRouterEnabled() does not change per-profile. · 006c6020
    mark a. foltz authored
    A runtime change to the kMediaRouterEnabled policy (managed preference) results
    in undefined behavior and crashes.  This is a workaround to ensure that
    MediaRouterEnabled() returns the same value for the lifetime of a profile.
    
    Fixing the Media Router to be enabled/disabled dynamically is possible, but will
    be blocked on extension removal (specifically the MediaRouteProvider mojo
    interface).
    
    Tested by manually enabling/disabling the policy while running Chrome and
    ensuring no crashes or partially-enabled UI states happen.
    
    Bug: 1076831
    Change-Id: I966a58196f92be40aed8771282c27f762102da6e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2597752
    Commit-Queue: mark a. foltz <mfoltz@chromium.org>
    Reviewed-by: default avatarTakumi Fujimoto <takumif@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#838705}
    006c6020
BUILD.gn 11.2 KB