[Settings] Fix notification settings crash due to multidevice policy.
This CL fixes crash in notifications settings page. This is reproduced on devices where multidevice features are disabled by policy. In this case MultiDeviceSetupClient is not instantiated, causing the look up for android messages info in the notifications settings page to crash. This was fixed by guarding the look up by a loadtime value that indicates whether multidevice features are allowed policy or not. Bug: 905908 Change-Id: Ic637768802e4e15b3643fe20dcc40d1bb3cea9da Reviewed-on: https://chromium-review.googlesource.com/c/1345729 Commit-Queue: Azeem Arshad <azeemarshad@chromium.org> Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:
Jeremy Klein <jlklein@chromium.org> Reviewed-by:
Steven Bennetts <stevenjb@chromium.org> Reviewed-by:
Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#611799}
Showing
Please register or sign in to comment