Bug 1536866 - Hide enter guest session option from the menu. r=petru

Differential Revision: https://phabricator.services.mozilla.com/D24212

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Vlad Baicu 2019-03-22 06:51:51 +00:00
parent 741672fb85
commit 033681c09c

View File

@ -3427,10 +3427,12 @@ public class BrowserApp extends GeckoApp
charEncoding.setVisible(GeckoPreferences.getCharEncodingState());
// Bug - 1536866. We are hiding the enter guest mode option but we need to leave the exit option available
// for users that are currently using it.
if (getProfile().inGuestMode()) {
exitGuestMode.setVisible(true);
} else {
enterGuestMode.setVisible(true);
enterGuestMode.setVisible(false);
}
if (!Restrictions.isAllowed(this, Restrictable.GUEST_BROWSING)) {