Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ec39b3a authored by Jigar Thakkar's avatar Jigar Thakkar
Browse files

Cleanup the flag show_different_creation_error_for_unsupported_devices

This CL removes the references to the flag since it has already been enabled

Bug: 409605074
Test: presubmits
Flag: EXEMPT flag cleanup
Change-Id: I8cb2d3fe1e15a52b4d5556fffac0fffb5f033a75
parent f223c0f6
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -379,16 +379,6 @@ flag {
  }
}

flag {
  name: "show_different_creation_error_for_unsupported_devices"
  namespace: "profile_experiences"
  description: "On private space create error due to child account added/fully managed user show message with link to the Help Center to find out more."
  bug: "340130375"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

flag {
  name: "unicorn_mode_refactoring_for_hsum_read_only"
  namespace: "multiuser"
+2 −7
Original line number Diff line number Diff line
@@ -8772,13 +8772,8 @@ public class UserManagerService extends IUserManager.Stub {
            String errorMessage = (message != null ? (message + ": ") : "")
                    + restriction + " is enabled.";
            Slog.w(LOG_TAG, errorMessage);
            if (android.multiuser.Flags.showDifferentCreationErrorForUnsupportedDevices()) {
            throw new UserManager.CheckedUserOperationException(errorMessage,
                USER_OPERATION_ERROR_USER_RESTRICTED);
            } else {
                throw new UserManager.CheckedUserOperationException(errorMessage,
                    USER_OPERATION_ERROR_UNKNOWN);
            }
        }
    }