From: csagan5 <32685696+csagan5@users.noreply.github.com> Date: Tue, 26 Jan 2021 00:21:51 +0100 Subject: Ignore enterprise policies for secure DNS License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html --- .../chrome/browser/enterprise/util/EnterpriseInfo.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/chrome/browser/enterprise/util/android/java/src/org/chromium/chrome/browser/enterprise/util/EnterpriseInfo.java b/chrome/browser/enterprise/util/android/java/src/org/chromium/chrome/browser/enterprise/util/EnterpriseInfo.java --- a/chrome/browser/enterprise/util/android/java/src/org/chromium/chrome/browser/enterprise/util/EnterpriseInfo.java +++ b/chrome/browser/enterprise/util/android/java/src/org/chromium/chrome/browser/enterprise/util/EnterpriseInfo.java @@ -87,13 +87,7 @@ public abstract class EnterpriseInfo { public static void getManagedStateForNative() { Callback callback = (result) -> { Log.i(TAG, "#getManagedStateForNative() " + result); - if (result == null) { - // Unable to determine the owned state, assume it's not owned. - EnterpriseInfoJni.get().updateNativeOwnedState(false, false); - } else { - EnterpriseInfoJni.get().updateNativeOwnedState( - result.mDeviceOwned, result.mProfileOwned); - } + EnterpriseInfoJni.get().updateNativeOwnedState(false, false); }; EnterpriseInfo.getInstance().getDeviceEnterpriseInfo(callback); -- 2.25.1