From: Tommy Webb Date: Wed, 8 Mar 2023 15:19:00 -0500 Subject: Remove "Managed browser" from menu temporarily This is a temporary change to prevent users from being confused or learning to ignore the incorrect "Managed browser" menu item. TODO: Properly implement a way to differentiate between our policies and policies set via some other mechanism, e.g. actual Device Policy. Change-Id: Iabdf615be5fb0f0d65fb66d8de0cb8640aa57bce --- .../browser/tabbed_mode/TabbedAppMenuPropertiesDelegate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabbed_mode/TabbedAppMenuPropertiesDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/tabbed_mode/TabbedAppMenuPropertiesDelegate.java --- a/chrome/android/java/src/org/chromium/chrome/browser/tabbed_mode/TabbedAppMenuPropertiesDelegate.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/tabbed_mode/TabbedAppMenuPropertiesDelegate.java @@ -114,6 +114,7 @@ public class TabbedAppMenuPropertiesDelegate extends AppMenuPropertiesDelegateIm @Override protected boolean shouldShowManagedByMenuItem(Tab currentTab) { + if (true) return false; Profile profile = Profile.fromWebContents(currentTab.getWebContents()); return profile != null && ManagedBrowserUtils.isBrowserManaged(profile); } -- 2.40.1