Commit bece741a authored by Theo Johnson-kanu's avatar Theo Johnson-kanu Committed by Chromium LUCI CQ

[Nearby] Dont show tray icon when disallowed by policy

Bug: 1156865
Change-Id: I381d94dd42a3bb99a81bd374488a331064ea1cec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2585747Reviewed-by: default avatarJames Vecore <vecore@google.com>
Commit-Queue: Nnamdi Theodore Johnson-kanu <tjohnsonkanu@google.com>
Cr-Commit-Position: refs/heads/master@{#836238}
parent 95053339
......@@ -52,7 +52,8 @@ NearbyShareDelegateImpl::~NearbyShareDelegateImpl() {
}
bool NearbyShareDelegateImpl::IsPodButtonVisible() {
return nearby_share_service_ != nullptr;
return nearby_share_service_ != nullptr &&
!nearby_share_service_->GetSettings()->IsDisabledByPolicy();
}
bool NearbyShareDelegateImpl::IsHighVisibilityOn() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment